Fix return type of refresh_from_db (#244)

This commit is contained in:
henribru
2019-12-12 03:36:11 +01:00
committed by Maksim Kurnikov
parent ade48b6546
commit e8e6fca78c

View File

@@ -41,7 +41,7 @@ class Model(metaclass=ModelBase):
using: Optional[str] = ...,
update_fields: Optional[Union[Sequence[str], str]] = ...,
): ...
def refresh_from_db(self: _Self, using: Optional[str] = ..., fields: Optional[List[str]] = ...) -> _Self: ...
def refresh_from_db(self: _Self, using: Optional[str] = ..., fields: Optional[List[str]] = ...) -> None: ...
def get_deferred_fields(self) -> Set[str]: ...
@classmethod
def check(cls, **kwargs: Any) -> List[CheckMessage]: ...