diff --git a/mitmproxy/types.py b/mitmproxy/types.py index 24a1172b8..ac9922172 100644 --- a/mitmproxy/types.py +++ b/mitmproxy/types.py @@ -5,7 +5,7 @@ import typing from mitmproxy import exceptions from mitmproxy import flow -if typing.TYPE_CHECKING: +if typing.TYPE_CHECKING: # pragma: no cover from mitmproxy.command import CommandManager diff --git a/setup.cfg b/setup.cfg index e7643b087..a1ba1610c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,6 +18,8 @@ show_missing = True exclude_lines = pragma: no cover raise NotImplementedError() + if typing.TYPE_CHECKING: + if TYPE_CHECKING: [mypy-mitmproxy.contrib.*] ignore_errors = True