amirfru / eparams

Simple and configurable parameters/configuration class. No manual schema needed
The Unlicense
5 stars 0 forks source link

New version of typeguard breaks eparams #4

Closed johnnyboloni closed 1 year ago

johnnyboloni commented 1 year ago

File "/miniconda/envs/cvsim/lib/python3.7/site-packages/eparams/main.py", line 478, in setattr _runtime.fields[name].validate(val) File "/miniconda/envs/py37/lib/python3.7/site-packages/eparams/main.py", line 332, in validate typeguard.check_type(self.name, value, self.type) TypeError: check_type() takes 2 positional arguments but 3 were given python-BaseException

Either explicitly specify an older version of typeguard (2.13.3 works for me) in setup.py or change the code to handle the new signature of check_type

Thanks, Yoni

amirfru commented 1 year ago

This was fixed, thanks!