mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from collections import defaultdict
|
||||
from re import Pattern
|
||||
from typing import Any, Callable, Collection, Container, Iterable, Iterator, MutableMapping, Sequence, TypeVar, Union
|
||||
from typing import Any, Callable, Collection, Container, Iterable, Iterator, Literal, MutableMapping, Sequence, TypeVar, Union, overload
|
||||
|
||||
import psycopg2
|
||||
|
||||
@@ -148,7 +148,10 @@ class BaseModel(metaclass=MetaModel):
|
||||
def _rec_name_fallback(self) -> str: ...
|
||||
def user_has_groups(self, groups: str) -> bool: ...
|
||||
def search_count(self, domain: _Domain, limit: int | None = ...) -> int: ...
|
||||
def search(self: _ModelT, domain: _Domain, offset: int = ..., limit: int | None = ..., order: str | None = ..., count: bool = ...) -> _ModelT | int: ...
|
||||
@overload
|
||||
def search(self: _ModelT, domain: _Domain, offset: int = ..., limit: int | None = ..., order: str | None = ..., count: Literal[False] = ...) -> _ModelT: ...
|
||||
@overload
|
||||
def search(self: _ModelT, domain: _Domain, offset: int = ..., limit: int | None = ..., order: str | None = ..., count: Literal[True] = ...) -> int: ...
|
||||
def _compute_display_name(self) -> None: ...
|
||||
def name_get(self) -> list[tuple[int, str]]: ...
|
||||
def name_create(self, name: str) -> tuple[int, str]: ...
|
||||
|
||||
Reference in New Issue
Block a user