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:
@@ -166,6 +166,8 @@ class Cache:
|
|||||||
check_dirty: bool = ...,
|
check_dirty: bool = ...,
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
def insert_missing(self, records: BaseModel, field: Field, values) -> None: ...
|
def insert_missing(self, records: BaseModel, field: Field, values) -> None: ...
|
||||||
|
def patch(self, records: BaseModel, field: Field, new_id) -> None: ...
|
||||||
|
def patch_and_set(self, record: BaseModel, field: Field, value): ...
|
||||||
def remove(self, record: BaseModel, field: Field) -> None: ...
|
def remove(self, record: BaseModel, field: Field) -> None: ...
|
||||||
def get_values(self, records: BaseModel, field: Field) -> Iterator: ...
|
def get_values(self, records: BaseModel, field: Field) -> Iterator: ...
|
||||||
def get_until_miss(self, records: BaseModel, field: Field) -> list: ...
|
def get_until_miss(self, records: BaseModel, field: Field) -> list: ...
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from collections.abc import MutableMapping
|
from collections.abc import MutableMapping
|
||||||
from typing import Any, Callable, Iterable, Literal, Mapping, TypeVar
|
from typing import Any, Callable, Generator, Iterable, Literal, Mapping, TypeVar
|
||||||
|
|
||||||
import geoip2.database
|
import geoip2.database
|
||||||
import geoip2.models
|
import geoip2.models
|
||||||
@@ -151,6 +151,16 @@ class GeoIP(Mapping):
|
|||||||
|
|
||||||
request: Request
|
request: Request
|
||||||
|
|
||||||
|
def borrow_request() -> Generator[Request, None, None]: ...
|
||||||
|
def make_request_wrap_methods(attr) -> tuple[Callable, Callable]: ...
|
||||||
|
|
||||||
|
class HTTPRequest:
|
||||||
|
environ: dict
|
||||||
|
def __init__(self, environ: dict) -> None: ...
|
||||||
|
def __enter__(self) -> HTTPRequest: ...
|
||||||
|
|
||||||
|
HTTPREQUEST_ATTRIBUTES: list[str]
|
||||||
|
|
||||||
class Response(werkzeug.Response):
|
class Response(werkzeug.Response):
|
||||||
default_mimetype: str
|
default_mimetype: str
|
||||||
def __init__(self, *args, **kw) -> None: ...
|
def __init__(self, *args, **kw) -> None: ...
|
||||||
|
|||||||
@@ -36,6 +36,10 @@ def translate_xml_node(
|
|||||||
) -> _Element: ...
|
) -> _Element: ...
|
||||||
def parse_xml(text: str) -> _Element: ...
|
def parse_xml(text: str) -> _Element: ...
|
||||||
def serialize_xml(node: _Element) -> str: ...
|
def serialize_xml(node: _Element) -> str: ...
|
||||||
|
|
||||||
|
MODIFIER_ATTRS: set[str]
|
||||||
|
|
||||||
|
def xml_term_adapter(term_en: str) -> Callable[[str], str]: ...
|
||||||
def parse_html(text: str) -> _Element: ...
|
def parse_html(text: str) -> _Element: ...
|
||||||
def serialize_html(node: _Element) -> str: ...
|
def serialize_html(node: _Element) -> str: ...
|
||||||
def xml_translate(callback: Callable[[str], str | None], value: str) -> str: ...
|
def xml_translate(callback: Callable[[str], str | None], value: str) -> str: ...
|
||||||
@@ -43,6 +47,7 @@ def xml_term_converter(value: str) -> str: ...
|
|||||||
def html_translate(callback: Callable[[str], str | None], value: str) -> str: ...
|
def html_translate(callback: Callable[[str], str | None], value: str) -> str: ...
|
||||||
def html_term_converter(value: str) -> str: ...
|
def html_term_converter(value: str) -> str: ...
|
||||||
def get_text_content(term: str) -> str: ...
|
def get_text_content(term: str) -> str: ...
|
||||||
|
def is_text(term: str) -> bool: ...
|
||||||
def translate_sql_constraint(cr: Cursor, key: str, lang: str) -> str: ...
|
def translate_sql_constraint(cr: Cursor, key: str, lang: str) -> str: ...
|
||||||
|
|
||||||
class GettextAlias:
|
class GettextAlias:
|
||||||
|
|||||||
Reference in New Issue
Block a user