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:
@@ -71,7 +71,7 @@ class Environment(Mapping[str, BaseModel]):
|
|||||||
def __new__(
|
def __new__(
|
||||||
cls, cr: Cursor, uid: int | None, context: dict, su: bool = ...
|
cls, cr: Cursor, uid: int | None, context: dict, su: bool = ...
|
||||||
) -> Environment: ...
|
) -> Environment: ...
|
||||||
def __contains__(self, model_name: str) -> bool: ...
|
def __contains__(self, model_name) -> bool: ...
|
||||||
def __getitem__(self, model_name: str) -> BaseModel: ...
|
def __getitem__(self, model_name: str) -> BaseModel: ...
|
||||||
def __iter__(self) -> Iterator[str]: ...
|
def __iter__(self) -> Iterator[str]: ...
|
||||||
def __len__(self) -> int: ...
|
def __len__(self) -> int: ...
|
||||||
|
|||||||
@@ -18,9 +18,8 @@ def get_module_path(
|
|||||||
) -> str | Literal[False]: ...
|
) -> str | Literal[False]: ...
|
||||||
def get_module_filetree(module: str, dir: str = ...) -> dict: ...
|
def get_module_filetree(module: str, dir: str = ...) -> dict: ...
|
||||||
def get_resource_path(module: str, *args) -> str | Literal[False]: ...
|
def get_resource_path(module: str, *args) -> str | Literal[False]: ...
|
||||||
def check_resource_path(mod_path: str, *args) -> str | Literal[False]: ...
|
|
||||||
|
|
||||||
get_module_resource = get_resource_path
|
get_module_resource = get_resource_path
|
||||||
|
check_resource_path = get_resource_path
|
||||||
|
|
||||||
def get_resource_from_path(path: str) -> tuple[str, str, str] | None: ...
|
def get_resource_from_path(path: str) -> tuple[str, str, str] | None: ...
|
||||||
def get_module_icon(module: str) -> str: ...
|
def get_module_icon(module: str) -> str: ...
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ from typing import Any, Callable, TextIO
|
|||||||
from lxml.etree import _Element
|
from lxml.etree import _Element
|
||||||
|
|
||||||
from ..api import Environment
|
from ..api import Environment
|
||||||
from .misc import ustr as ustr
|
|
||||||
|
|
||||||
safe_eval: Callable
|
safe_eval: Callable
|
||||||
|
|
||||||
@@ -31,6 +30,7 @@ class xml_import:
|
|||||||
def env(self) -> Environment: ...
|
def env(self) -> Environment: ...
|
||||||
@property
|
@property
|
||||||
def noupdate(self) -> bool: ...
|
def noupdate(self) -> bool: ...
|
||||||
|
def next_sequence(self) -> int: ...
|
||||||
mode: str
|
mode: str
|
||||||
module: str
|
module: str
|
||||||
envs: list[Environment]
|
envs: list[Environment]
|
||||||
|
|||||||
@@ -293,6 +293,8 @@ class Unpickler(pickle_.Unpickler):
|
|||||||
|
|
||||||
pickle: ModuleType
|
pickle: ModuleType
|
||||||
|
|
||||||
|
class ReadonlyDict(Mapping): ...
|
||||||
|
|
||||||
class DotDict(dict):
|
class DotDict(dict):
|
||||||
def __getattr__(self, attrib): ...
|
def __getattr__(self, attrib): ...
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ class BrandedFileWriter(PdfFileWriter):
|
|||||||
PdfFileWriter = BrandedFileWriter
|
PdfFileWriter = BrandedFileWriter
|
||||||
|
|
||||||
def merge_pdf(pdf_data: Iterable[bytes]) -> bytes: ...
|
def merge_pdf(pdf_data: Iterable[bytes]) -> bytes: ...
|
||||||
|
def fill_form_fields_pdf(document: bytes, form_fields: dict | None = ...) -> bytes: ...
|
||||||
def rotate_pdf(pdf: bytes) -> bytes: ...
|
def rotate_pdf(pdf: bytes) -> bytes: ...
|
||||||
def to_pdf_stream(attachment: IrAttachment) -> BytesIO: ...
|
def to_pdf_stream(attachment: IrAttachment) -> BytesIO: ...
|
||||||
def add_banner(
|
def add_banner(
|
||||||
|
|||||||
Reference in New Issue
Block a user