Skip to content

Commit caa3294

Browse files
authored
A workaround for #2299 (#2300)
This is not a fix, but a workaround for #2299 We would need to add proper generic type params later.
1 parent b9a7c83 commit caa3294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django-stubs/contrib/contenttypes/fields.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class GenericRel(ForeignObjectRel):
6666
limit_choices_to: dict[str, Any] | Callable[[], Any] | None = ...,
6767
) -> None: ...
6868

69-
class GenericRelation(ForeignObject):
69+
class GenericRelation(ForeignObject[Any, Any]):
7070
rel_class: Any
7171
mti_inherited: bool
7272
object_id_field_name: str

0 commit comments

Comments
 (0)