]> 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:08 +0000 (22:08 +0200)
commit7d8dfa10df3be8d138dd954708efca7d6ed0e503
tree14fc7aef22854c98e59912f741d4e8b57bcbfe3f
parentc0bb145305a3b29afcc476cf2832e6402703350b
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
lib/sqlalchemy/orm/attributes.py
test/typing/plain_files/orm/relationship.py