yukinarit/envclasses

Support Decimal

Opened this issue · 2 comments

@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