From 7726b01000e0d85766153759a65c3545c267b530 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Wed, 15 Mar 2023 09:55:50 +0100 Subject: [PATCH] Add type annotations --- toot/tui/timeline.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index 645ab3e..7cd44fe 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -3,7 +3,7 @@ import sys import urwid import webbrowser -from typing import Optional +from typing import List, Optional from .entities import Status from .scroll import Scrollable, ScrollBar @@ -45,13 +45,14 @@ class Timeline(urwid.Columns): "copy-status", # Copy status to clipboard ] - def __init__(self, - tui: "app.TUI", - name, - statuses, - focus=0, - is_thread=False): - + def __init__( + self, + tui: "app.TUI", + name: str, + statuses: List[Status], + focus: int = 0, + is_thread: bool = False + ): self.tui = tui self.name = name self.is_thread = is_thread