envclasses icon indicating copy to clipboard operation
envclasses copied to clipboard

Support Decimal

Open yukinarit opened this issue 4 years ago • 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)

yukinarit avatar Oct 10 '20 11:10 yukinarit

Hi @yukinarit can you be more specific for this?

pranavvp10 avatar Jul 24 '22 17:07 pranavvp10

@pranavvp10 Updated the description, PTAL

yukinarit avatar Jul 27 '22 15:07 yukinarit