dataclasses-json
dataclasses-json copied to clipboard
chore: improved type annotation
This resolves https://github.com/lidatong/dataclasses-json/issues/336
And also makes the dataclass_json.core.Json type a little stricter.
Please don’t merge this, it doesn’t work.
Please don’t merge this, it doesn’t work.
Yeah, no worries not merging. We've already forked this for our purposes (we use PyRight for type-checking, which does not suffer from MyPy's limitations). I'll leave this open for now, just in case MyPy figures out recursive typing at some point in the future.