lovasoa / marshmallow_dataclass

Automatic generation of marshmallow schemas from dataclasses.
https://lovasoa.github.io/marshmallow_dataclass/html/marshmallow_dataclass.html
MIT License
458 stars 78 forks source link

Add UnionType workaround #202

Closed Vovetta closed 1 year ago

Vovetta commented 2 years ago

Since UnionType from Python 3.10 currently unsupported in typing_inspect added workaround to use type | type syntax in dataclasses.

dairiki commented 1 year ago

As of 0.8.0, typing_inspect supports the PEP 604 (A | B) syntax. (And, as of release 8.5.11, we now pin typing_inspect>=0.8.0.)

So I think this is fixed. Closing.