diff options
author | Aldo Cortesi <aldo@corte.si> | 2017-06-13 10:26:03 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2017-06-13 10:26:03 +1200 |
commit | 56eb0441da1ae85399fdbc5597cf181eeb408223 (patch) | |
tree | ce2224d924d87b76419274e332c78edbda18ff13 /test | |
parent | 0fc24857e1786973b56a40afef8e64abffbf1c98 (diff) | |
download | mitmproxy-56eb0441da1ae85399fdbc5597cf181eeb408223.tar.gz mitmproxy-56eb0441da1ae85399fdbc5597cf181eeb408223.tar.bz2 mitmproxy-56eb0441da1ae85399fdbc5597cf181eeb408223.zip |
commands: teach parser correct annotations for variable args
We should annotate with the base type, not the resulting sequence.
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mitmproxy/test_command.py b/test/mitmproxy/test_command.py index 958328b2..87432163 100644 --- a/test/mitmproxy/test_command.py +++ b/test/mitmproxy/test_command.py @@ -22,7 +22,7 @@ class TAddon: def empty(self) -> None: pass - def varargs(self, one: str, *var: typing.Sequence[str]) -> typing.Sequence[str]: + def varargs(self, one: str, *var: str) -> typing.Sequence[str]: return list(var) |