FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

✨ Add support for PEP695 `type` alias syntax by stickm4n · Pull Request #1628 · fastapi/sqlmodel · GitHub

Repository navigation

✨ Add support for PEP695 type alias syntax - #1628

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

stickm4n wants to merge 23 commits into
fastapi:mainfrom
stickm4n:type-alias-fix

Conversation

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.

Copy link
Copy Markdown
Contributor Author

@YuriiMotov could you review this and label it?

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

This comment was marked as resolved.

Comment thread tests/test_field_sa_type.py Outdated
stickm4n marked this pull request as ready for review October 29, 2025 12:16

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

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.

Copy link
Copy Markdown
Contributor Author

@svlandeg could you please take a look at this?

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

This comment was marked as resolved.

github-actions Bot removed the conflicts Automatically generated when a PR has a merge conflict label Apr 5, 2026

github-actions Bot commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

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

github-actions Bot added the conflicts Automatically generated when a PR has a merge conflict label Apr 5, 2026

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL