Skip to content

Fix BatchOperations.create_index typing - #1855

Closed
Boulea7 wants to merge 1 commit into
sqlalchemy:mainfrom
Boulea7:fix/1853-batch-create-index
Closed

Fix BatchOperations.create_index typing#1855
Boulea7 wants to merge 1 commit into
sqlalchemy:mainfrom
Boulea7:fix/1853-batch-create-index

Conversation

@Boulea7

@Boulea7 Boulea7 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Fixes: #1853

Description

Update BatchOperations.create_index() so its generated API accepts the same column expression types as Operations.create_index(). This removes false type-checker errors for batch migrations that use expressions such as literal_column().

The BatchOperations API was regenerated with tools/write_pyi.py. Generated-stub consistency, the repository mypy check, and the SQLite test suite pass.

@sqla-tester

Copy link
Copy Markdown
Collaborator

Thanks! Issue #1853 is now marked code review in progress and no longer open for pull requests, so this pull request holds the review for it and another one won't land on top of your work. If this pull request is abandoned, a maintainer can put open for pull requests back on #1853 to reopen it to others.

@CaselIT
CaselIT requested a review from sqla-tester August 14, 2026 07:25

@sqla-tester sqla-tester left a comment

Copy link
Copy Markdown
Collaborator

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 CaselIT to try to get revision 36a42d5 of this pull request into gerrit so we can run tests and reviews and stuff

@sqla-tester

Copy link
Copy Markdown
Collaborator

New Gerrit review created for change 36a42d5: https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/6897

@sqla-tester

Copy link
Copy Markdown
Collaborator

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

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.

Bug: BatchOperations.create_index has incorrect signature

2 participants