]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Fix typing of `partial_reordering`
authorDaniël <93520871+Flaab123@users.noreply.github.com>
Tue, 16 Dec 2025 13:27:05 +0000 (08:27 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 16 Dec 2025 14:14:21 +0000 (09:14 -0500)
commitfeada2888143efad43c1581811f33dc8a2944a58
tree0b705439491adfcc33edf8f4c2ed43d0ca6fbaa5
parentab6f459ea053663fdd54ae30c2e7e3f1d60850c1
Fix typing of `partial_reordering`

<!-- Provide a general summary of your proposed changes in the Title field above -->
The typing of the `partial_reordering` argument of `batch_alter_table` is not correct.

<!-- Describe your changes in detail -->
As stated in the documentation and docstring, the `batch_alter_table()` function expects a list of tuples for the `partial_reordering` argument. The current typing suggests the user to insert a tuple containing Any into the argument, which doesn't align with the docstring.

<!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once)

-->

This pull request is:

- [ x] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [ ] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

**Have a nice day!**

Closes: #1764
Pull-request: https://github.com/sqlalchemy/alembic/pull/1764
Pull-request-sha: f0a0c1a913b93a2c71881e69be83a7888e21bc5e

Change-Id: I1f442df0674e85361234a97aed1d79f58d30214f
alembic/op.pyi
alembic/operations/base.py