From 95ca11e98c47c3e8e57093c37134a6f51bcb6f30 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 29 Dec 2021 17:05:21 +0100 Subject: Add type hinting everywhere so we can enable strict mypy options Signed-off-by: Olivier Gayot --- swiftstory/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swiftstory/player.py') diff --git a/swiftstory/player.py b/swiftstory/player.py index 525a4e6..7243585 100644 --- a/swiftstory/player.py +++ b/swiftstory/player.py @@ -30,7 +30,7 @@ class Player: self.next_idx += 1 return self.next_idx - 1 - def register_notification(self, obj: Any): + def register_notification(self, obj: Any) -> None: message = json.dumps({'type': 'notification', 'content': obj}) self.notifications.put_nowait(message) -- cgit v1.2.3