]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Accommodate for callable fns for collection_class
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Apr 2021 15:12:49 +0000 (11:12 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Apr 2021 15:13:49 +0000 (11:13 -0400)
commit64cfcf4af0d5b09efa07aeb2b863c2aae9587c3d
tree077b1ece88fa4d993c825950dea1942e3deb4803
parentd5a22410474f51170f18958a623e4f6c05e6b47e
Accommodate for callable fns for collection_class

Fixed issue where the Mypy plugin would fail to interpret the
"collection_class" of a relationship if it were a callable and not a class.
Also improved type matching and error reporting for collection-oriented
relationships.

Fixes: #6205
Change-Id: If3cb0defd4d7336e06a3bb3a3e8d59ea34b4c98d
doc/build/changelog/unreleased_14/6205.rst [new file with mode: 0644]
lib/sqlalchemy/ext/mypy/infer.py
test/ext/mypy/files/orderinglist1.py [new file with mode: 0644]
test/ext/mypy/files/orderinglist2.py [new file with mode: 0644]