kopia lustrzana https://github.com/ihabunek/toot
Add type annotations
rodzic
45fd2901de
commit
7726b01000
|
@ -3,7 +3,7 @@ import sys
|
||||||
import urwid
|
import urwid
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
from typing import Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
from .entities import Status
|
from .entities import Status
|
||||||
from .scroll import Scrollable, ScrollBar
|
from .scroll import Scrollable, ScrollBar
|
||||||
|
@ -45,13 +45,14 @@ class Timeline(urwid.Columns):
|
||||||
"copy-status", # Copy status to clipboard
|
"copy-status", # Copy status to clipboard
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(
|
||||||
tui: "app.TUI",
|
self,
|
||||||
name,
|
tui: "app.TUI",
|
||||||
statuses,
|
name: str,
|
||||||
focus=0,
|
statuses: List[Status],
|
||||||
is_thread=False):
|
focus: int = 0,
|
||||||
|
is_thread: bool = False
|
||||||
|
):
|
||||||
self.tui = tui
|
self.tui = tui
|
||||||
self.name = name
|
self.name = name
|
||||||
self.is_thread = is_thread
|
self.is_thread = is_thread
|
||||||
|
|
Ładowanie…
Reference in New Issue