]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add explicit overload for composite -> callable
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Mar 2023 12:35:56 +0000 (08:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Mar 2023 12:43:22 +0000 (08:43 -0400)
commitf898d55be0e6c1ef0ce3105d563d599afe7556bc
tree0e7b47e36f9651a2f3fa3dfd86d9a3ca7a4ac562
parentd9539e3990acf19ee1a03690d4a7441d26a7fbfd
add explicit overload for composite -> callable

Fixed typing issue where :func:`_orm.composite` would not allow an
arbitrary callable as the source of the composite class.

Fixes: #9502
Change-Id: I5b098b70b2fb7b48f54eaccbb7d5d3d9bdebc781
doc/build/changelog/unreleased_20/9502.rst [new file with mode: 0644]
doc/build/orm/composites.rst
lib/sqlalchemy/orm/_orm_constructors.py
test/ext/mypy/plain_files/composite.py