diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-29 17:05:21 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-29 17:06:29 +0100 |
commit | 95ca11e98c47c3e8e57093c37134a6f51bcb6f30 (patch) | |
tree | 4c10504aee30dab96e6d5836f0f35f9d6a6a9810 /swiftstory/player.py | |
parent | 8d242a5e6c090ee8165b36fea6520d533269518e (diff) |
Add type hinting everywhere so we can enable strict mypy options
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory/player.py')
-rw-r--r-- | swiftstory/player.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |