mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-27 08:03:23 +08:00
Relax fields= arg for refresh_from_db to accept Sequence (#1156)
This commit is contained in:
1 parent
d7326315b1
commit
6f9afd3cc9
1 file changed
+1
-1
@@ -58,7 +58,7 @@ class Model(metaclass=ModelBase):
|
|||||||
using: Optional[str] = ...,
|
using: Optional[str] = ...,
|
||||||
update_fields: Optional[Iterable[str]] = ...,
|
update_fields: Optional[Iterable[str]] = ...,
|
||||||
): ...
|
): ...
|
||||||
def refresh_from_db(self: _Self, using: Optional[str] = ..., fields: Optional[List[str]] = ...) -> None: ...
|
def refresh_from_db(self: _Self, using: Optional[str] = ..., fields: Optional[Sequence[str]] = ...) -> None: ...
|
||||||
def get_deferred_fields(self) -> Set[str]: ...
|
def get_deferred_fields(self) -> Set[str]: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def check(cls, **kwargs: Any) -> List[CheckMessage]: ...
|
def check(cls, **kwargs: Any) -> List[CheckMessage]: ...
|
||||||
|
|||||||
Reference in new issue
Block a user