Support Python 3.12 TypeAlias
syntax
#3772
Labels
infrastructure
Anything related to our infrastructure
TypeAlias
syntax
#3772
Python 3.12 introduced some syntax to define
TypeAlias
's that looks likeAnnoyingly for us, this is represented in AST as a
TypeAlias
node instead of theAnnAssign
node we're used to. As such, the autoaliasattr directive does not work with this syntax, and type aliases defined using this syntax are not documented.While manim still has some time before Python 3.12 becomes the minimum supported version and we can begin using this syntax, it would be nice to have it implemented so that fewer worries occur when that eventually happens.
The text was updated successfully, but these errors were encountered: