]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure "sqlalchemy" info set for all considered classes
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 Aug 2021 17:12:55 +0000 (13:12 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 Aug 2021 17:15:33 +0000 (13:15 -0400)
commit07b7e1594deecc6c9c64893a63f56403da0dcf05
treece5eb76781d7d2cdb286a754eb15f07557ae13e5
parent00fe746366d910d9328543a194afb52a115a1837
ensure "sqlalchemy" info set for all considered classes

Fixed issue in mypy plugin where columns on a mixin would not be correctly
interpreted if the mapped class relied upon a ``__tablename__`` routine
that came from a superclass.

Fixes: #6937
Change-Id: I74aed4862d0545008ee67f781aaa794ab6866926
doc/build/changelog/unreleased_14/6937.rst [new file with mode: 0644]
lib/sqlalchemy/ext/mypy/decl_class.py
lib/sqlalchemy/ext/mypy/util.py
test/ext/mypy/files/mixin_w_tablename.py [new file with mode: 0644]