aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/addons
diff options
context:
space:
mode:
authorHenrique <typoon@gmail.com>2019-11-24 20:21:14 -0500
committerHenrique <typoon@gmail.com>2019-11-24 20:21:14 -0500
commit6a7f27ff152fc05f9bbe847625e92dc1ecad3653 (patch)
tree8d9ee86a4b59e79b397748f4b3e37f40111e666f /mitmproxy/addons
parent7b386d5393a68715e70a9ea6d2936c8b09104f86 (diff)
downloadmitmproxy-6a7f27ff152fc05f9bbe847625e92dc1ecad3653.tar.gz
mitmproxy-6a7f27ff152fc05f9bbe847625e92dc1ecad3653.tar.bz2
mitmproxy-6a7f27ff152fc05f9bbe847625e92dc1ecad3653.zip
Make `mypy` happy
Diffstat (limited to 'mitmproxy/addons')
-rw-r--r--mitmproxy/addons/command_history.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/addons/command_history.py b/mitmproxy/addons/command_history.py
index c97cab8f..3df2fe5d 100644
--- a/mitmproxy/addons/command_history.py
+++ b/mitmproxy/addons/command_history.py
@@ -15,7 +15,7 @@ class CommandHistory:
self.filter_str: str = ''
_command_history_path = os.path.join(os.path.expanduser(ctx.options.confdir), 'command_history')
- _history_lines = []
+ _history_lines: typing.List[str] = []
if os.path.exists(_command_history_path):
_history_lines = open(_command_history_path, 'r').readlines()