Closed Vovetta closed 1 year ago
Since UnionType from Python 3.10 currently unsupported in typing_inspect added workaround to use type | type syntax in dataclasses.
typing_inspect
type | type
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.)
typing_inspect>=0.8.0
So I think this is fixed. Closing.
Since UnionType from Python 3.10 currently unsupported in
typing_inspect
added workaround to usetype | type
syntax in dataclasses.