From aa7b722e957e07e1979c03a6000f06c125fe4932 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sat, 14 Oct 2023 19:27:53 -0500 Subject: [PATCH] Update typings for mypy 1.6 (#368) --- jupyter_core/command.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}"