Closed wikiped closed 10 months ago
Sure, this is definitely in scope. Adding support for TypeAliasType
instances should be fairly straightforward, with the exception of recursive alias definitions (these would require a major refactor of msgspec's internals).
Description
Currently (msgspec version
0.18.4
, python3.12
) the following:Will fail on the last line:
Considering that:
Would it make sense to add support for the
typing.TypeAliasType
which is created withtype
statements (since python 3.12)?