Make mypy happy

This commit is contained in:
Henrique 2019-11-24 20:21:14 -05:00
parent 7b386d5393
commit 6a7f27ff15

View File

@ -15,7 +15,7 @@ class CommandHistory:
self.filter_str: str = '' self.filter_str: str = ''
_command_history_path = os.path.join(os.path.expanduser(ctx.options.confdir), 'command_history') _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): if os.path.exists(_command_history_path):
_history_lines = open(_command_history_path, 'r').readlines() _history_lines = open(_command_history_path, 'r').readlines()