]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix(attribute_keyed_dict): using Any instead of TypeVar (#10746)
authorMehdi GMIRA <mehdigmira@gmail.com>
Fri, 8 Dec 2023 10:54:11 +0000 (11:54 +0100)
committerGitHub <noreply@github.com>
Fri, 8 Dec 2023 10:54:11 +0000 (11:54 +0100)
Co-authored-by: Mehdi Gmira <mgmira@wiremind.io>
lib/sqlalchemy/orm/mapped_collection.py

index 6a0ee22b3b63c0406e0e9e1bf45aa4d3a9a29631..a75789f851d8fbfdf40cf68b91fc68f22ce0e855 100644 (file)
@@ -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