Fix type hints for older versions of python
This commit is contained in:
parent
3cd13f6885
commit
b2c2f7466e
1 changed files with 2 additions and 2 deletions
|
@ -352,7 +352,7 @@ def print_poll(poll: Poll):
|
||||||
print_out(poll_footer)
|
print_out(poll_footer)
|
||||||
|
|
||||||
|
|
||||||
def print_timeline(items: list[Status], width=100):
|
def print_timeline(items: List[Status], width=100):
|
||||||
print_out("─" * width)
|
print_out("─" * width)
|
||||||
for item in items:
|
for item in items:
|
||||||
print_status(item, width)
|
print_status(item, width)
|
||||||
|
@ -379,7 +379,7 @@ def print_notification(notification: Notification, width=100):
|
||||||
print_status(notification.status, width)
|
print_status(notification.status, width)
|
||||||
|
|
||||||
|
|
||||||
def print_notifications(notifications: list[Notification], width=100):
|
def print_notifications(notifications: List[Notification], width=100):
|
||||||
for notification in notifications:
|
for notification in notifications:
|
||||||
print_notification(notification)
|
print_notification(notification)
|
||||||
print_out("─" * width)
|
print_out("─" * width)
|
||||||
|
|
Loading…
Reference in a new issue