]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
set type of type_of to be same as input argument
authorWouter Kayser <wouterkayser@gmail.com>
Sun, 23 Jun 2024 10:18:05 +0000 (06:18 -0400)
committerFederico Caselli <cfederico87@gmail.com>
Tue, 25 Jun 2024 20:08:46 +0000 (22:08 +0200)
commit860a3969e810546447a7cfff40209006f81cb98f
tree2c5478f1f5fc0557a5c945f025036d74640435a5
parentac9047ec79e9c4ac5efebe83753c51f8165800bf
set type of type_of to be same as input argument

Fixes: #11371
Fixes the of_type method so that it does not return a class with unset generic.
See the original issue for a more detailed explanation.

Closes: #11416
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/11416
Pull-request-sha: ed8d0edebb6b84b9dcffcf24c52f113c37e7fedd

Change-Id: I35637491d6d9c573825f6d13299712626dd521c5
(cherry picked from commit 7d8dfa10df3be8d138dd954708efca7d6ed0e503)
lib/sqlalchemy/orm/attributes.py
test/typing/plain_files/orm/relationship.py