From b2c2f7466ed1857412d963479769f4e16758e528 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Mon, 26 Jun 2023 16:46:39 +0200 Subject: [PATCH] Fix type hints for older versions of python --- toot/output.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toot/output.py b/toot/output.py index b533244..3605c3a 100644 --- a/toot/output.py +++ b/toot/output.py @@ -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)