From 8b0dddea1af8c19b33f6c3dfdf9768cf72985d7f Mon Sep 17 00:00:00 2001 From: adastram Date: Tue, 9 Jan 2024 14:10:34 +0100 Subject: [PATCH] Added better dict tipage --- src/engine/sound_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/sound_manager.py b/src/engine/sound_manager.py index ee17bd3..c833a34 100644 --- a/src/engine/sound_manager.py +++ b/src/engine/sound_manager.py @@ -23,10 +23,10 @@ class SoundManager: self.music_is_paused = False self.music_pos_delay = 0 - self.sound_currently_playing = {float: [mixer.Sound, float, [float, float], float]} # Format {unique_id : [Sound, max_volume, [pos_x, pos_y], stop_at]} + self.sound_currently_playing: dict[float: list[mixer.Sound, float, list[float, float], float]] = {} # Format {unique_id : [Sound, max_volume, [pos_x, pos_y], stop_at]} - self.sound_loaded = {str: mixer.Sound} # Format : {name: mixer.Sound} - self.sound_global_currently_playing = {float: [mixer.Sound, float, float]} # Format {unique_id: [Sound, volume, stop_at]} + self.sound_loaded: dict[str: mixer.Sound] = {}# Format : {name: mixer.Sound} + self.sound_global_currently_playing: dict[float: list[mixer.Sound, float, float]] = {} # Format {unique_id: [Sound, volume, stop_at]} self.sound_hears_anchor = None