Skip to content

Commit 62d2e82

Browse files
committed
some mypy fixes
1 parent 822c6c9 commit 62d2e82

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ repos:
5151
"ipython>=8.16.1",
5252
"jupyter_client>=8.5",
5353
"appnope",
54+
"types-psutil",
5455
]
5556

5657
- repo: https://github.com/adamchainz/blacken-docs

ipykernel/kernelapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def init_io(self):
514514
isinstance(handler, StreamHandler)
515515
and (buffer := getattr(handler.stream, "buffer", None))
516516
and (fileno := getattr(buffer, "fileno", None))
517-
and fileno() == sys.stderr._original_stdstream_fd # type:ignore[attr-defined]
517+
and fileno() == sys.stderr._original_stdstream_fd
518518
):
519519
self.log.debug("Seeing logger to stderr, rerouting to raw filedescriptor.")
520520
io_wrapper = TextIOWrapper(

0 commit comments

Comments
 (0)