Skip to content

Commit 05e88b1

Browse files
authored
Update typings for mypy 1.6 (#983)
1 parent dfb4c12 commit 05e88b1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import os.path as osp
1717
import shutil
1818

19-
from sphinx.util import logging # type:ignore[import]
19+
from sphinx.util import logging # type:ignore[import-not-found]
2020

2121
# If extensions (or modules to document with autodoc) are in another directory,
2222
# add these directories to sys.path here. If the directory is relative to the
@@ -51,7 +51,7 @@ def filter(self, record: pylogging.LogRecord) -> bool:
5151
# End of a workaround
5252

5353
try:
54-
import enchant # type:ignore[import] # noqa
54+
import enchant # type:ignore[import-not-found] # noqa
5555

5656
extensions += ["sphinxcontrib.spelling"]
5757
except ImportError:

jupyter_client/localinterfaces.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
LOCAL_IPS: List = []
1313
PUBLIC_IPS: List = []
1414

15-
LOCALHOST = ""
15+
LOCALHOST: str = ""
1616

1717

1818
def _uniq_stable(elems: Iterable) -> List:
@@ -151,7 +151,7 @@ def _load_ips_ipconfig():
151151

152152
def _load_ips_netifaces():
153153
"""load ip addresses with netifaces"""
154-
import netifaces # type: ignore[import]
154+
import netifaces # type: ignore[import-not-found]
155155

156156
global LOCALHOST
157157
local_ips = []

jupyter_client/ssh/tunnel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class SSHException(Exception): # type:ignore[no-redef] # noqa
3131
from .forward import forward_tunnel
3232

3333
try:
34-
import pexpect # type: ignore[import]
34+
import pexpect # type: ignore[import-untyped]
3535
except ImportError:
3636
pexpect = None
3737

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ nowarn = "test -W default {args}"
9999

100100
[tool.hatch.envs.typing]
101101
features = ["test"]
102-
dependencies = ["mypy>=1.5.1", "traitlets>=5.11.2", "jupyter_core>=5.3.2"]
102+
dependencies = ["mypy~=1.6", "traitlets>=5.11.2", "jupyter_core>=5.3.2"]
103103
[tool.hatch.envs.typing.scripts]
104104
test = "mypy --install-types --non-interactive {args:.}"
105105

0 commit comments

Comments
 (0)