Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Sep 9, 2023
1 parent e4897c9 commit 448c310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2209,8 +2209,8 @@ def init_signal(self):
"""Initialize signal handlers."""
if (
not sys.platform.startswith("win")
and sys.stdin
and sys.stdin.isatty() # type:ignore[truthy-bool]
and sys.stdin # type:ignore[truthy-bool]
and sys.stdin.isatty()
):
signal.signal(signal.SIGINT, self._handle_sigint)
signal.signal(signal.SIGTERM, self._signal_stop)
Expand Down

0 comments on commit 448c310

Please sign in to comment.