aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/command.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2019-11-12 02:59:01 +0100
committerMaximilian Hils <git@maximilianhils.com>2019-11-12 04:38:13 +0100
commitbdc15cbe0c0cd5175af1b58078d65d400cca71d1 (patch)
treeeb65d9f2e2c7c7d934a6d7bca53a24341d0b5a43 /mitmproxy/command.py
parentf97996126f7a7606f8601f0318f0a70a4e818c6c (diff)
downloadmitmproxy-bdc15cbe0c0cd5175af1b58078d65d400cca71d1.tar.gz
mitmproxy-bdc15cbe0c0cd5175af1b58078d65d400cca71d1.tar.bz2
mitmproxy-bdc15cbe0c0cd5175af1b58078d65d400cca71d1.zip
update mypy
Diffstat (limited to 'mitmproxy/command.py')
-rw-r--r--mitmproxy/command.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mitmproxy/command.py b/mitmproxy/command.py
index 27f0921d..0998601c 100644
--- a/mitmproxy/command.py
+++ b/mitmproxy/command.py
@@ -44,6 +44,8 @@ def typename(t: type) -> str:
class Command:
+ returntype: typing.Optional[typing.Type]
+
def __init__(self, manager, path, func) -> None:
self.path = path
self.manager = manager
@@ -177,7 +179,7 @@ class CommandManager(mitmproxy.types._CommandBase):
parse: typing.List[ParseResult] = []
params: typing.List[type] = []
- typ: typing.Type = None
+ typ: typing.Type
for i in range(len(parts)):
if i == 0:
typ = mitmproxy.types.Cmd