]> 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)
committersqla-tester <sqla-tester@sqlalchemy.org>
Tue, 16 Jan 2024 12:03:09 +0000 (07:03 -0500)
commit48d3ad2d90308905709d886fb38dc1de2e2e2478
treefd3e97236486bac84a5019d3e610c9a1a686b7af
parent8f4ac0c0f07509d2f8a4bce9cbb07ac08ad04044
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
lib/sqlalchemy/sql/functions.py
test/typing/plain_files/sql/functions_again.py