Fix type hints for older versions of python

This commit is contained in:
Ivan Habunek 2023-06-26 16:46:39 +02:00
parent 3cd13f6885
commit b2c2f7466e
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
1 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ def print_poll(poll: Poll):
print_out(poll_footer)
def print_timeline(items: list[Status], width=100):
def print_timeline(items: List[Status], width=100):
print_out("" * width)
for item in items:
print_status(item, width)
@ -379,7 +379,7 @@ def print_notification(notification: Notification, width=100):
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:
print_notification(notification)
print_out("" * width)