aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/command.py
diff options
context:
space:
mode:
authorHenrique M. D <typoon@gmail.com>2019-11-15 13:59:57 -0500
committerGitHub <noreply@github.com>2019-11-15 13:59:57 -0500
commit021a14152125ee13657eea772fe3460b478ea099 (patch)
tree83794f1b3bafbcd7862300b5463dac27e43ff358 /mitmproxy/command.py
parent8972250167cfd55dcfcb93b2d3d7b33e0546629d (diff)
parent698f7e2e177baf313e6af62ec0f79a26693e430b (diff)
downloadmitmproxy-021a14152125ee13657eea772fe3460b478ea099.tar.gz
mitmproxy-021a14152125ee13657eea772fe3460b478ea099.tar.bz2
mitmproxy-021a14152125ee13657eea772fe3460b478ea099.zip
Merge branch 'master' into fix-command-bar-issue-3259
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 4aa6fdb2..c7a45587 100644
--- a/mitmproxy/command.py
+++ b/mitmproxy/command.py
@@ -34,6 +34,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
@@ -194,7 +196,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