From a36c9bf0bb4066924ff977575b3e60af25509d0e Mon Sep 17 00:00:00 2001 From: Kevin Ahr Date: Sat, 16 Mar 2024 13:36:17 -0500 Subject: [PATCH] Attemp to fix python 3.11 errors --- animator/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/animator/__init__.py b/animator/__init__.py index 595e3e0..c6b248c 100644 --- a/animator/__init__.py +++ b/animator/__init__.py @@ -65,11 +65,11 @@ class WipeArgs: @dataclass class AnimationArgs: "Options for animations" - single_color: SingleColorArgs = SingleColorArgs() - glitter_rainbow: GlitterRainbowArgs = GlitterRainbowArgs() - fade: FadeArgs = FadeArgs() - flash: FlashArgs = FlashArgs() - wipe: WipeArgs = WipeArgs() + single_color: SingleColorArgs = field(default_factory=SingleColorArgs) + glitter_rainbow: GlitterRainbowArgs = field(default_factory=GlitterRainbowArgs) + fade: FadeArgs = field(default_factory=FadeArgs) + flash: FlashArgs = field(default_factory=FlashArgs) + wipe: WipeArgs = field(default_factory=WipeArgs) # Set the desired FPS for your animation