aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mitmproxy/types.py2
-rw-r--r--setup.cfg2
2 files changed, 3 insertions, 1 deletions
diff --git a/mitmproxy/types.py b/mitmproxy/types.py
index 24a1172b..ac992217 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 e7643b08..a1ba1610 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