diff --git a/jupyter_core/command.py b/jupyter_core/command.py index 6bd5f1f..d65e337 100644 --- a/jupyter_core/command.py +++ b/jupyter_core/command.py @@ -42,7 +42,7 @@ def epilog(self, x: Any) -> None: def argcomplete(self) -> None: """Trigger auto-completion, if enabled""" try: - import argcomplete # type: ignore[import] + import argcomplete # type: ignore[import-not-found] argcomplete.autocomplete(self) except ImportError: diff --git a/pyproject.toml b/pyproject.toml index 04f9276..fb12bb4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -88,7 +88,7 @@ nowarn = "test -W default {args}" [tool.hatch.envs.typing] features = ["test"] -dependencies = ["mypy>=1.5.1", "traitlets>=5.11.2"] +dependencies = ["mypy~=1.6.0", "traitlets>=5.11.2"] [tool.hatch.envs.typing.scripts] test = "mypy --install-types --non-interactive {args}"