Skip to content

Commit

Permalink
allow none
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Oct 17, 2024
1 parent f805287 commit f0a3aff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ipykernel/kernelbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Kernel(SingletonConfigurable):
control_tasks: t.Any = List()

debug_shell_socket = Any()
control_thread: Thread
control_thread: t.Optional[Thread] = None
shell_channel_thread: Thread

iopub_socket = Any()
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ ignore = [
"G002",
# `open()` should be replaced by `Path.open()`
"PTH123",
# use `X | Y` for type annotations, this does not works for dynamic getting type hints on older python
"UP007",
]
unfixable = [
# Don't touch print statements
Expand Down

0 comments on commit f0a3aff

Please sign in to comment.