Skip to content

Commit 537604a

Browse files
committed
clean up list
1 parent 29eb387 commit 537604a

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ repos:
4545
rev: v0.942
4646
hooks:
4747
- id: mypy
48-
exclude: 'ipykernel.*tests'
48+
exclude: "ipykernel.*tests"
4949
args: ["--config-file", "pyproject.toml"]
5050
additional_dependencies: [tornado, jupyter_client, pytest]
5151
stages: [manual]

ipykernel/_eventloop_macos.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ def C(classname):
4242
# end obj-c boilerplate from appnope
4343

4444
# CoreFoundation C-API calls we will use:
45-
CoreFoundation = ctypes.cdll.LoadLibrary(ctypes.util.find_library("CoreFoundation")) # type:ignore[arg-type]
45+
CoreFoundation = ctypes.cdll.LoadLibrary(
46+
ctypes.util.find_library("CoreFoundation")
47+
) # type:ignore[arg-type]
4648

4749
CFAbsoluteTimeGetCurrent = CoreFoundation.CFAbsoluteTimeGetCurrent
4850
CFAbsoluteTimeGetCurrent.restype = ctypes.c_double

ipykernel/kernelapp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,9 @@ def init_io(self):
464464
self.log.debug("Seeing logger to stderr, rerouting to raw filedescriptor.")
465465

466466
handler.stream = TextIOWrapper(
467-
FileIO(sys.stderr._original_stdstream_copy, "w") # type:ignore[attr-defined]
467+
FileIO(
468+
sys.stderr._original_stdstream_copy, "w"
469+
) # type:ignore[attr-defined]
468470
)
469471
if self.displayhook_class:
470472
displayhook_factory = import_item(str(self.displayhook_class))

ipykernel/kernelbase.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,9 @@ def _input_request(self, prompt, ident, parent, password=False):
11931193
# zmq.select() is also uninterruptible, but at least this
11941194
# way reads get noticed immediately and KeyboardInterrupts
11951195
# get noticed fairly quickly by human response time standards.
1196-
rlist, _, xlist = zmq.select([self.stdin_socket], [], [self.stdin_socket], 0.01) # type:ignore[arg-type]
1196+
rlist, _, xlist = zmq.select(
1197+
[self.stdin_socket], [], [self.stdin_socket], 0.01
1198+
) # type:ignore[arg-type]
11971199
if rlist or xlist:
11981200
ident, reply = self.session.recv(self.stdin_socket)
11991201
if (ident, reply) != (None, None):

0 commit comments

Comments
 (0)