mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-08-17 13:18:02 +08:00
improved version
This commit is contained in:
@@ -44,7 +44,7 @@ class ForeignObjectRel:
|
||||
def __repr__(self) -> str: ...
|
||||
@property
|
||||
def db_type(self) -> Callable: ...
|
||||
def get_accessor_name(self, model: Any = ...) -> Optional[str]: ...
|
||||
def get_accessor_name(self, model: Optional[Type[Model]] = ...) -> Optional[str]: ...
|
||||
def get_cache_name(self) -> str: ...
|
||||
def get_choices(
|
||||
self,
|
||||
@@ -62,7 +62,7 @@ class ForeignObjectRel:
|
||||
def get_lookup(
|
||||
self,
|
||||
lookup_name: str
|
||||
) -> Type[Union[RelatedIsNull, RelatedIn, RelatedExact]]: ...
|
||||
) -> Type[Union[RelatedIsNull, RelatedExact, RelatedIn]]: ...
|
||||
def get_path_info(
|
||||
self,
|
||||
filtered_relation: Optional[FilteredRelation] = ...
|
||||
@@ -81,7 +81,7 @@ class ForeignObjectRel:
|
||||
@cached_property
|
||||
def one_to_one(self) -> bool: ...
|
||||
@cached_property
|
||||
def related_model(self) -> Any: ...
|
||||
def related_model(self) -> Type[Model]: ...
|
||||
@property
|
||||
def remote_field(
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user