envclasses
envclasses copied to clipboard
Support Decimal
@envclass
@dataclass
class Hoge:
d: Decimal
h = Hoge(d=Decimal(10))
os.environ['ENV_D'] = '20'
assert isinstance(h.d, Decimal)
assert h.d == Decimal(20)
Hi @yukinarit can you be more specific for this?
@pranavvp10 Updated the description, PTAL