mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-17 17:35:59 +08:00
fixes for ci imports failures
This commit is contained in:
@@ -34,6 +34,8 @@ class RelatedField(FieldCacheMixin, Field):
|
||||
@property
|
||||
def target_field(self) -> Field: ...
|
||||
|
||||
class ForeignObject(RelatedField): ...
|
||||
|
||||
class ForeignKey(RelatedField, Generic[_T]):
|
||||
def __init__(self, to: Union[Type[_T], str], on_delete: Any, related_name: str = ..., **kwargs): ...
|
||||
def __get__(self, instance, owner) -> _T: ...
|
||||
|
||||
Reference in New Issue
Block a user