✨ Add support for PEP695 `type` alias syntax
As a language feature for Python 3.12+ was introduced new type-alias definitions. Reference here
They are not working in sqlmodel hence this PR to support them.
@YuriiMotov could you review this and label it?
I converted it to Draft. Please, mark as ready for review when it's ready :)
Could you please comment on the implementation of the algorithm? Also, looks like the title and description of PR don't match the changes. We should either split changes into several PRs (probably preferrable) or update title\description
Could you please comment on the implementation of the algorithm?
Also, looks like the title and description of PR don't match the changes.
We should either split changes into several PRs (probably preferrable) or update title\description
Ok, it's a good idea. I will document the changes referencing all PEPs that are supported with this. When I was implementing it I noticed there were more type definitions that were not covered. I thinks it's all type definitions, which are different from alias by variable assignment.
@svlandeg could you please take a look at this?