Update stubs

This commit is contained in:
Trinh Anh Ngoc
2024-07-29 16:14:07 +07:00
parent c10ecf3855
commit 6c6b724353
2 changed files with 23 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ from .tools.translate import _ as _
from .tools.translate import _lt as _lt
MIN_PY_VERSION: tuple[int, ...]
MAX_PY_VERSION: tuple[int, ...]
evented: bool
multi_process: bool
iso8859_8: CodecInfo

View File

@@ -391,8 +391,29 @@ class BaseModel(metaclass=MetaModel):
order: str | None = ...,
seen: set | None = ...,
) -> None: ...
@overload
def _search(
self: _ModelT,
self,
domain: list,
offset: int = ...,
limit: int | None = ...,
order: str | None = ...,
count: Literal[False] = ...,
access_rights_uid: int | None = ...,
) -> Query: ...
@overload
def _search(
self,
domain: list,
offset: int = ...,
limit: int | None = ...,
order: str | None = ...,
count: Literal[True] = ...,
access_rights_uid: int | None = ...,
) -> int: ...
@overload
def _search(
self,
domain: list,
offset: int = ...,
limit: int | None = ...,