]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Correct type hint for FunctionElement.table_valued()
authorMartijn Pieters <mj@zopatista.com>
Tue, 16 Jan 2024 12:03:09 +0000 (07:03 -0500)
committerFederico Caselli <cfederico87@gmail.com>
Tue, 23 Jan 2024 19:09:56 +0000 (20:09 +0100)
commit8b506451ac6bdf1fc257ff2069d2547260fd5dd6
treeec6819db71fabd16adf1499803cb4c83a0b48c6d
parentbc460b34c2f5a532fefb327ab790b31c1b6220bd
Correct type hint for FunctionElement.table_valued()

### Description

The documentation and the type annotations for `TableValueType()` clearly
state that both strings and column expression arguments are accepted
but the annotation omits `str`, which is the most common use case.

### Checklist
This pull request is:

- [x] A documentation / typographical / small typing 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.

Closes: #10886
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/10886
Pull-request-sha: 624a97f051b378516518a30d88e7f216456d1c50

Change-Id: I2a1d2eb9b70815c33a27dd238ff2a9f11e5f5a64
(cherry picked from commit 48d3ad2d90308905709d886fb38dc1de2e2e2478)
lib/sqlalchemy/sql/functions.py
test/typing/plain_files/sql/functions_again.py