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:
@@ -25,6 +25,7 @@ Default: object
|
|||||||
|
|
||||||
def first(records: _ModelT) -> _ModelT: ...
|
def first(records: _ModelT) -> _ModelT: ...
|
||||||
def resolve_mro(model: BaseModel, name: str, predicate: Callable[..., bool]): ...
|
def resolve_mro(model: BaseModel, name: str, predicate: Callable[..., bool]): ...
|
||||||
|
def determine(needle: str | Callable, records: BaseModel, *args): ...
|
||||||
|
|
||||||
class MetaField(type):
|
class MetaField(type):
|
||||||
by_type: dict
|
by_type: dict
|
||||||
@@ -83,7 +84,6 @@ class Field(metaclass=MetaField):
|
|||||||
related_attrs: list[tuple[str, str]]
|
related_attrs: list[tuple[str, str]]
|
||||||
description_attrs: list[tuple[str, str]]
|
description_attrs: list[tuple[str, str]]
|
||||||
def __init__(self, string: str = ..., **kwargs) -> None: ...
|
def __init__(self, string: str = ..., **kwargs) -> None: ...
|
||||||
def new(self, **kwargs): ...
|
|
||||||
def __str__(self) -> str: ...
|
def __str__(self) -> str: ...
|
||||||
def __repr__(self) -> str: ...
|
def __repr__(self) -> str: ...
|
||||||
def __set_name__(self, owner: type[BaseModel], name: str) -> None: ...
|
def __set_name__(self, owner: type[BaseModel], name: str) -> None: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user