From 6a7f27ff152fc05f9bbe847625e92dc1ecad3653 Mon Sep 17 00:00:00 2001 From: Henrique Date: Sun, 24 Nov 2019 20:21:14 -0500 Subject: [PATCH] Make `mypy` happy --- mitmproxy/addons/command_history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/addons/command_history.py b/mitmproxy/addons/command_history.py index c97cab8f4..3df2fe5d6 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()