Add type annotations

This commit is contained in:
Ivan Habunek 2023-03-15 09:55:50 +01:00
parent 45fd2901de
commit 7726b01000
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
1 changed files with 9 additions and 8 deletions

View File

@ -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