Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Sep 30, 2023
1 parent 8f83ec9 commit 63591e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jupyter_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def __del__(self):
"""Handle garbage collection. Destroy context if applicable."""
if (
self._created_context
and self.context is not None
and not self.context.closed # type:ignore[redundant-expr]
and self.context is not None # type:ignore[redundant-expr]
and not self.context.closed
):
if self.channels_running:
if self.log:
Expand Down
4 changes: 2 additions & 2 deletions jupyter_client/kernelspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ def _get_kernel_spec_by_name(self, kernel_name, resource_dir):
resource_dir=resource_dir, **get_kernel_dict()
) # type:ignore[operator]
if not kspec:
kspec = self.kernel_spec_class.from_resource_dir(
resource_dir # type:ignore[attr-defined]
kspec = self.kernel_spec_class.from_resource_dir( # type:ignore[attr-defined]
resource_dir
)

if not KPF.instance(parent=self.parent).is_provisioner_available(kspec):
Expand Down

0 comments on commit 63591e3

Please sign in to comment.