Skip to content

✨ Add support for PEP695 type alias syntax#1628

Open
stickm4n wants to merge 23 commits intofastapi:mainfrom
stickm4n:type-alias-fix
Open

✨ Add support for PEP695 type alias syntax#1628
stickm4n wants to merge 23 commits intofastapi:mainfrom
stickm4n:type-alias-fix

Conversation

@stickm4n
Copy link
Copy Markdown
Contributor

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.

@stickm4n
Copy link
Copy Markdown
Contributor Author

@YuriiMotov could you review this and label it?

@YuriiMotov YuriiMotov changed the title Type alias for Python 3.12+ is not working ✨ Add support for PEP695 type alias syntax Oct 29, 2025
@YuriiMotov YuriiMotov added the feature New feature or request label Oct 29, 2025
@YuriiMotov YuriiMotov marked this pull request as draft October 29, 2025 11:40
@YuriiMotov

This comment was marked as resolved.

@stickm4n stickm4n marked this pull request as ready for review October 29, 2025 12:16
@YuriiMotov
Copy link
Copy Markdown
Member

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

@stickm4n
Copy link
Copy Markdown
Contributor Author

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.

@stickm4n
Copy link
Copy Markdown
Contributor Author

@svlandeg could you please take a look at this?

@github-actions github-actions bot added the conflicts Automatically generated when a PR has a merge conflict label Apr 3, 2026
@github-actions

This comment was marked as resolved.

@github-actions github-actions bot removed the conflicts Automatically generated when a PR has a merge conflict label Apr 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 5, 2026

This pull request has a merge conflict that needs to be resolved.

@github-actions github-actions bot added the conflicts Automatically generated when a PR has a merge conflict label Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts Automatically generated when a PR has a merge conflict feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants