Skip to content

Commit

Permalink
A workaround for #2299 (#2300)
Browse files Browse the repository at this point in the history
This is not a fix, but a workaround for #2299

We would need to add proper generic type params later.
  • Loading branch information
sobolevn authored Jul 31, 2024
1 parent b9a7c83 commit caa3294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django-stubs/contrib/contenttypes/fields.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class GenericRel(ForeignObjectRel):
limit_choices_to: dict[str, Any] | Callable[[], Any] | None = ...,
) -> None: ...

class GenericRelation(ForeignObject):
class GenericRelation(ForeignObject[Any, Any]):
rel_class: Any
mti_inherited: bool
object_id_field_name: str
Expand Down

0 comments on commit caa3294

Please sign in to comment.