Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ repos:
[mdformat-gfm, mdformat-frontmatter, mdformat-footnote]

- repo: https://github.com/asottile/pyupgrade
rev: v3.2.0
rev: v3.2.2
hooks:
- id: pyupgrade
args: [--py38-plus]
Expand All @@ -62,7 +62,7 @@ repos:
stages: [manual]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
rev: v0.990
hooks:
- id: mypy
exclude: "ipykernel.*tests"
Expand All @@ -87,7 +87,7 @@ repos:
stages: [manual]

- repo: https://github.com/sirosen/check-jsonschema
rev: 0.18.4
rev: 0.19.1
hooks:
- id: check-jsonschema
name: "Check GitHub Workflows"
Expand Down
2 changes: 1 addition & 1 deletion ipykernel/inprocess/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _dispatch_to_kernel(self, msg):
stream = kernel.shell_stream
self.session.send(stream, msg)
msg_parts = stream.recv_multipart()
if run_sync:
if run_sync is not None:
dispatch_shell = run_sync(kernel.dispatch_shell)
dispatch_shell(msg_parts)
else:
Expand Down
2 changes: 1 addition & 1 deletion ipykernel/ipkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def _restore_input(self):

getpass.getpass = self._save_getpass

@property # type:ignore[override]
@property
def execution_count(self):
return self.shell.execution_count

Expand Down
2 changes: 1 addition & 1 deletion ipykernel/kernelapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def init_io(self):

handler.stream = TextIOWrapper(
FileIO(
sys.stderr._original_stdstream_copy, # type:ignore[attr-defined]
sys.stderr._original_stdstream_copy,
"w",
)
)
Expand Down
2 changes: 1 addition & 1 deletion ipykernel/kernelbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ async def comm_info_request(self, stream, ident, parent):
if hasattr(self, "comm_manager"):
comms = {
k: dict(target_name=v.target_name)
for (k, v) in self.comm_manager.comms.items() # type:ignore[attr-defined]
for (k, v) in self.comm_manager.comms.items()
if v.target_name == target_name or target_name is None
}
else:
Expand Down