konradhalas / dacite

Simple creation of data classes from dictionaries.
MIT License
1.72k stars 106 forks source link

Added checking for union type #169

Closed MaciejHanszke closed 2 years ago

MaciejHanszke commented 2 years ago

Since python 3.10, Union type has a name attribute, returning "Union" type, instead of "typing.Union[X, Y]" - to keep it backwards compatible (thus returning the old typing.Union type), it will be now stringified