From b345f5d432f3b8c100b2e709f96bfd1701c87196 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 8 Mar 2017 01:00:55 +0100 Subject: [PATCH] typing.Type -> type `typing.Type` should have been `typing.Type[Any]`, which in turn is equivalent to `type` --- mitmproxy/optmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitmproxy/optmanager.py b/mitmproxy/optmanager.py index a928b953f..8661aece8 100644 --- a/mitmproxy/optmanager.py +++ b/mitmproxy/optmanager.py @@ -26,7 +26,7 @@ class _Option: def __init__( self, name: str, - typespec: typing.Type, + typespec: type, default: typing.Any, help: str, choices: typing.Optional[typing.Sequence[str]] @@ -101,7 +101,7 @@ class OptManager: def add_option( self, name: str, - typespec: typing.Type, + typespec: type, default: typing.Any, help: str, choices: typing.Optional[typing.Sequence[str]] = None