old python

This commit is contained in:
Kovid Goyal
2024-08-03 13:58:52 +05:30
parent c8a16688b5
commit 35b2895f3c

View File

@@ -853,7 +853,7 @@ class NotificationManager:
self.in_progress_notification_commands_by_client_id: dict[str, NotificationCommand] = {}
self.pending_commands: dict[int, NotificationCommand] = {}
def notification_created(self, desktop_notification_id: int) -> NotificationCommand | None:
def notification_created(self, desktop_notification_id: int) -> Optional[NotificationCommand]:
if n := self.in_progress_notification_commands.get(desktop_notification_id):
n.created_by_desktop = True
if n.timeout > 0: