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 /mitmproxy/tools | |
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 'mitmproxy/tools')
-rw-r--r-- | mitmproxy/tools/console/master.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mitmproxy/tools/console/master.py b/mitmproxy/tools/console/master.py index 92e8b7a2..64e1a444 100644 --- a/mitmproxy/tools/console/master.py +++ b/mitmproxy/tools/console/master.py @@ -189,7 +189,7 @@ class ConsoleAddon: @command.command("console.choose") def console_choose( - self, prompt: str, choices: typing.Sequence[str], *cmd: typing.Sequence[str] + self, prompt: str, choices: typing.Sequence[str], *cmd: str ) -> None: """ Prompt the user to choose from a specified list of strings, then @@ -211,7 +211,7 @@ class ConsoleAddon: @command.command("console.choose.cmd") def console_choose_cmd( - self, prompt: str, choicecmd: str, *cmd: typing.Sequence[str] + self, prompt: str, choicecmd: str, *cmd: str ) -> None: """ Prompt the user to choose from a list of strings returned by a @@ -234,7 +234,7 @@ class ConsoleAddon: ) @command.command("console.command") - def console_command(self, *partial: typing.Sequence[str]) -> None: + def console_command(self, *partial: str) -> None: """ Prompt the user to edit a command with a (possilby empty) starting value. """ |