From 7bf06f8ae04697305731ec89a43ebea6da4376b8 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 18 Nov 2019 05:19:06 +0100 Subject: [PATCH] fix coverage --- mitmproxy/types.py | 2 +- setup.cfg | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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