aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/tools/console/commander/commander.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/tools/console/commander/commander.py')
-rw-r--r--mitmproxy/tools/console/commander/commander.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/tools/console/commander/commander.py b/mitmproxy/tools/console/commander/commander.py
index f3e499f8..df3eaa5a 100644
--- a/mitmproxy/tools/console/commander/commander.py
+++ b/mitmproxy/tools/console/commander/commander.py
@@ -23,7 +23,7 @@ class ListCompleter(Completer):
options: typing.Sequence[str],
) -> None:
self.start = start
- self.options = [] # type: typing.Sequence[str]
+ self.options: typing.Sequence[str] = []
for o in options:
if o.startswith(start):
self.options.append(o)
@@ -53,7 +53,7 @@ class CommandBuffer:
self.text = self.flatten(start)
# Cursor is always within the range [0:len(buffer)].
self._cursor = len(self.text)
- self.completion = None # type: CompletionState
+ self.completion: CompletionState = None
@property
def cursor(self) -> int: