Skip to content

Commit 6e69a86

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1f70018 commit 6e69a86

File tree

7 files changed

+12
-16
lines changed

7 files changed

+12
-16
lines changed

ipykernel/comm/manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
# Distributed under the terms of the Modified BSD License.
55

66
import logging
7+
from typing import Any, Dict
78

89
import comm.base_comm
910
import traitlets
1011
import traitlets.config
11-
from typing import Dict, Any
1212

1313
from .comm import Comm
1414

ipykernel/debugger.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121

2222
try:
2323
# This import is required to have the next ones working...
24-
from debugpy.server import api # type: ignore[import-untyped]# noqa: F401
25-
2624
from _pydevd_bundle import ( # type:ignore[import-not-found]
2725
pydevd_frame_utils,
28-
) # isort: skip
26+
)
27+
from debugpy.server import api # type: ignore[import-untyped]# noqa: F401
2928
from _pydevd_bundle.pydevd_suspended_frames import ( # type:ignore[import-not-found] # isort: skip
3029
SuspendedFramesManager,
3130
_FramesTracker,

ipykernel/inprocess/ipkernel.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ async def execute_request(self, stream, ident, parent):
8282
with self._redirected_io():
8383
await super().execute_request(stream, ident, parent)
8484

85-
async def start(
86-
self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED
87-
) -> None:
85+
async def start(self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED) -> None:
8886
"""Override registration of dispatchers for streams."""
8987
if self.shell:
9088
self.shell.exit_now = False

ipykernel/inprocess/socket.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# Distributed under the terms of the Modified BSD License.
55

66
from math import inf
7+
from typing import Any
78

89
import zmq
910
import zmq.asyncio
1011
from anyio import create_memory_object_stream
1112
from traitlets import HasTraits, Instance
12-
from typing import Any
1313

1414
# -----------------------------------------------------------------------------
1515
# Dummy socket class

ipykernel/ipkernel.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ async def poll_stopped_queue(self):
246246
while True:
247247
await self.debugger.handle_stopped_event()
248248

249-
async def start(
250-
self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED
251-
) -> None:
249+
async def start(self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED) -> None:
252250
"""Start the kernel."""
253251
if self.shell:
254252
self.shell.exit_now = False
@@ -643,7 +641,10 @@ def do_is_complete(self, code):
643641
def do_apply(self, content, bufs, msg_id, reply_metadata):
644642
"""Handle an apply request."""
645643
try:
646-
from ipyparallel.serialize import serialize_object, unpack_apply_message # type: ignore[import-not-found]
644+
from ipyparallel.serialize import ( # type: ignore[import-not-found]
645+
serialize_object,
646+
unpack_apply_message,
647+
)
647648
except ImportError:
648649
from .serialize import serialize_object, unpack_apply_message
649650

ipykernel/kernelbase.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,7 @@ def pre_handler_hook(self):
539539
def post_handler_hook(self):
540540
"""Hook to execute after calling message handler"""
541541

542-
async def start(
543-
self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED
544-
) -> None:
542+
async def start(self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED) -> None:
545543
"""Process messages on shell and control channels"""
546544
async with create_task_group() as tg:
547545
self.control_stop = threading.Event()

ipykernel/pickleutil.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
try:
1414
from ipyparallel.serialize import ( # type: ignore[import-not-found]
1515
codeutil,
16-
) # noqa: F401,
16+
)
1717
except ImportError:
1818
pass
1919
from traitlets.log import get_logger

0 commit comments

Comments
 (0)