fix type annotation

This commit is contained in:
Alexander Zveruk 2020-05-20 09:25:57 +03:00
parent 0037e361cf
commit 8c7615f62f

View file

@ -252,9 +252,11 @@ class MsgView:
function will remove message one by one from the start until selected
message could be visible on the screen.
"""
selected_item_idx = None
selected_item_idx: Optional[int] = None
collected_items: List[Tuple[Tuple[str, ...], bool, int]] = []
for ignore_before in range(len(msgs)):
if selected_item_idx is not None:
break
collected_items = []
line_num = self.h
for msg_idx, msg_item in msgs[ignore_before:]: