From: Mehdi GMIRA Date: Fri, 8 Dec 2023 10:54:11 +0000 (+0100) Subject: fix(attribute_keyed_dict): using Any instead of TypeVar (#10746) X-Git-Tag: rel_2_0_24~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=961039f9a491d38f63baa6442fcf0e366aa051eb;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix(attribute_keyed_dict): using Any instead of TypeVar (#10746) Co-authored-by: Mehdi Gmira (cherry picked from commit 86f335c29e9f4d9a8e2b28dd75301f28f5f9f4f1) --- diff --git a/lib/sqlalchemy/orm/mapped_collection.py b/lib/sqlalchemy/orm/mapped_collection.py index 6a0ee22b3b..a75789f851 100644 --- a/lib/sqlalchemy/orm/mapped_collection.py +++ b/lib/sqlalchemy/orm/mapped_collection.py @@ -231,7 +231,7 @@ class _AttrGetter: def attribute_keyed_dict( attr_name: str, *, ignore_unpopulated_attribute: bool = False -) -> Type[KeyFuncDict[_KT, _KT]]: +) -> Type[KeyFuncDict[Any, Any]]: """A dictionary-based collection type with attribute-based keying. .. versionchanged:: 2.0 Renamed :data:`.attribute_mapped_collection` to