From 5093e200bd19c4560ffbb1e3a645c81fe7f8857a Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sun, 17 Mar 2024 00:18:08 -0600 Subject: [PATCH] [fix] Crash due to conversions typing --- jarvis/data/units.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/data/units.py b/jarvis/data/units.py index b19696c..7669641 100644 --- a/jarvis/data/units.py +++ b/jarvis/data/units.py @@ -11,7 +11,7 @@ from typing import ClassVar @dataclass class Converter: BASE: str = "sample" - CONVERSIONS: ClassVar[dict[str, float]] = field(default_factory=dict) + CONVERSIONS: ClassVar[dict[str, float]] = {} @classmethod def get_rate(cls, from_: str, to: str) -> float: