[fix] Crash due to conversions typing

This commit is contained in:
Zeva Rose 2024-03-17 00:18:08 -06:00
parent 2249458f59
commit 5093e200bd

View file

@ -11,7 +11,7 @@ from typing import ClassVar
@dataclass @dataclass
class Converter: class Converter:
BASE: str = "sample" BASE: str = "sample"
CONVERSIONS: ClassVar[dict[str, float]] = field(default_factory=dict) CONVERSIONS: ClassVar[dict[str, float]] = {}
@classmethod @classmethod
def get_rate(cls, from_: str, to: str) -> float: def get_rate(cls, from_: str, to: str) -> float: