Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-07-19 15:46:18 +07:00
parent 06ffe9d3d7
commit 99a02edea1

View File

@@ -339,9 +339,10 @@ class BaseModel(metaclass=MetaModel):
def unlink(self): ... def unlink(self): ...
def write(self, vals: dict[str, Any]): ... def write(self, vals: dict[str, Any]): ...
def _write(self, vals: dict[str, Any]) -> None: ... def _write(self, vals: dict[str, Any]) -> None: ...
def create( @overload
self: _ModelT, vals_list: list[dict[str, Any]] | dict[str, Any] def create(self: _ModelT, vals_list: list[dict[str, Any]]) -> _ModelT: ...
) -> _ModelT: ... @overload
def create(self: _ModelT, vals_list: dict[str, Any]) -> _ModelT: ...
def _prepare_create_values( def _prepare_create_values(
self, vals_list: list[dict[str, Any]] self, vals_list: list[dict[str, Any]]
) -> list[dict[str, Any]]: ... ) -> list[dict[str, Any]]: ...