Closed u3Izx9ql7vW4 closed 1 year ago
Hi @user293811! In 0.6.0 @ringohoffman did some fixes to annotation type hints, so please try with that one. In general, if you want type hinting working correctly in all IDEs, please subclass DataClassJsonMixin
instead using the annotation.
Description
I was trying to add type hinting for functions accepting classes accepting dataclass_json, but I'm still getting an error saying that what I'm passing in is missing
to_json
andfrom_json
functions. What should be the proper typing for dataclass_json decorated classes?Code snippet that reproduces the issue
Describe the results you expected
Should not throw type hint error
Python version you are using
3.10
Environment description
dataclasses-json 0.5.14