Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make ARRAY generic on the item_type #12443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

dlax
Copy link
Contributor

@dlax dlax commented Mar 18, 2025

Now Column(type_=ARRAY(Integer) is inferred as Column[Sequence[int]] instead as Column[Sequence[Any]] previously. This only works with the type_ argument to Column, but that's not new.

This follows from a suggestion at
#12386 (comment).

Related to #6810.

Now `Column(type_=ARRAY(Integer)` is inferred as `Column[Sequence[int]]`
instead as `Column[Sequence[Any]]` previously. This only works with the `type_`
argument to Column, but that's not new.

This follows from a suggestion at
sqlalchemy#12386 (comment).

Related to sqlalchemy#6810.
@dlax dlax force-pushed the typing-array-generic branch from dc8433b to 2fff4e8 Compare March 18, 2025 09:50
@dlax dlax marked this pull request as ready for review March 18, 2025 09:59
@zzzeek zzzeek requested a review from sqla-tester March 18, 2025 16:22
Copy link
Collaborator

@sqla-tester sqla-tester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, this is sqla-tester setting up my work on behalf of zzzeek to try to get revision 2fff4e8 of this pull request into gerrit so we can run tests and reviews and stuff

@sqla-tester
Copy link
Collaborator

New Gerrit review created for change 2fff4e8: https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/5793

@CaselIT
Copy link
Member

CaselIT commented Mar 18, 2025

great work, thanks!

@sqla-tester
Copy link
Collaborator

Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/5793 has been merged. Congratulations! :)

@sqla-tester
Copy link
Collaborator

Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/5794 has been merged. Congratulations! :)

sqlalchemy-bot pushed a commit that referenced this pull request Mar 19, 2025
Now `Column(type_=ARRAY(Integer)` is inferred as `Column[Sequence[int]]` instead as `Column[Sequence[Any]]` previously. This only works with the `type_` argument to Column, but that's not new.

This follows from a suggestion at
#12386 (comment).

Related to #6810.

Closes: #12443
Pull-request: #12443
Pull-request-sha: 2fff4e8

Change-Id: I87b828fd82d10fbf157141db3c31f0ec8149caad
(cherry picked from commit 500adfa)
@dlax dlax deleted the typing-array-generic branch March 20, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants