diff --git a/imapclient/interact.py b/imapclient/interact.py index 8675530d..7abdbaa3 100644 --- a/imapclient/interact.py +++ b/imapclient/interact.py @@ -104,18 +104,20 @@ def main() -> int: banner = '\nIMAPClient instance is "c"' def ptpython(c: imapclient.IMAPClient) -> None: - from ptpython.repl import embed # type: ignore[import] + from ptpython.repl import embed # type: ignore[import-not-found] embed(globals(), locals()) def ipython_400(c: imapclient.IMAPClient) -> None: - from IPython.terminal.embed import InteractiveShellEmbed # type: ignore[import] + from IPython.terminal.embed import ( # type: ignore[import-not-found] + InteractiveShellEmbed, + ) ipshell = InteractiveShellEmbed(banner1=banner) ipshell("") def ipython_011(c: imapclient.IMAPClient) -> None: - from IPython.frontend.terminal.embed import ( # type: ignore[import] + from IPython.frontend.terminal.embed import ( # type: ignore[import-not-found] InteractiveShellEmbed, ) @@ -123,7 +125,7 @@ def ipython_011(c: imapclient.IMAPClient) -> None: ipshell("") def ipython_010(c: imapclient.IMAPClient) -> None: - from IPython.Shell import IPShellEmbed # type: ignore[import] + from IPython.Shell import IPShellEmbed # type: ignore[import-not-found] IPShellEmbed("", banner=banner)() diff --git a/requirements-dev.txt b/requirements-dev.txt index aaa0ae51..caf4d551 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,5 +2,5 @@ sphinx black==23.9.1 flake8==6.1.0 isort==5.12.0 -mypy==1.5.1 +mypy==1.6.0 pylint==3.0.0 diff --git a/setup.py b/setup.py index 79d3179e..fb9c2748 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from os import path from typing import Dict -from setuptools import setup # type: ignore[import] +from setuptools import setup # type: ignore[import-untyped] # Read version info here = path.dirname(__file__)