]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Accept OrderByLists in order_by
authorTobias Petersen <tobias.petersen@mikrodust.com>
Tue, 21 Apr 2026 16:48:17 +0000 (12:48 -0400)
committersqla-tester <sqla-tester@sqlalchemy.org>
Tue, 21 Apr 2026 16:48:17 +0000 (12:48 -0400)
commite4e2f94629dd279e5e9dc286b770f9279c36a722
tree17a805725dc239c5d7c4a0acccf2b4979db212c0
parent053a90668acd235cc03b5209470e24c9742121db
Accept OrderByLists in order_by

Add OrderByRole to acceptable arguments for order_by

Fixes: #13248
### Description
Add OrderByRole to acceptable arguments for order_by to solve typing regression

### Checklist
<!-- 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 / small typing error fix
- Good to go, no issue or tests are needed
- [x] 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: #13251
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/13251
Pull-request-sha: 267e33f31139d4b6c6c3309b5875e1896e10e743

Change-Id: I0778cdecfebfb12bafc5b6027763ae5f5dcf02a2
lib/sqlalchemy/sql/selectable.py
test/typing/plain_files/sql/common_sql_element.py