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:
@@ -177,10 +177,13 @@ class WorkerHTTP(Worker):
|
|||||||
def start(self) -> None: ...
|
def start(self) -> None: ...
|
||||||
|
|
||||||
class WorkerCron(Worker):
|
class WorkerCron(Worker):
|
||||||
|
alive_time: float
|
||||||
db_index: int
|
db_index: int
|
||||||
watchdog_timeout: int
|
watchdog_timeout: int
|
||||||
def __init__(self, multi: PreforkServer) -> None: ...
|
def __init__(self, multi: PreforkServer) -> None: ...
|
||||||
def sleep(self) -> None: ...
|
def sleep(self) -> None: ...
|
||||||
|
alive: bool
|
||||||
|
def check_limits(self) -> None: ...
|
||||||
def process_work(self) -> None: ...
|
def process_work(self) -> None: ...
|
||||||
dbcursor: Cursor
|
dbcursor: Cursor
|
||||||
def start(self) -> None: ...
|
def start(self) -> None: ...
|
||||||
|
|||||||
@@ -56,8 +56,10 @@ def generate_tracking_message_id(res_id: str) -> str: ...
|
|||||||
def email_split_tuples(text: str) -> list[str]: ...
|
def email_split_tuples(text: str) -> list[str]: ...
|
||||||
def email_split(text: str) -> list[str]: ...
|
def email_split(text: str) -> list[str]: ...
|
||||||
def email_split_and_format(text: str) -> list[str]: ...
|
def email_split_and_format(text: str) -> list[str]: ...
|
||||||
|
def email_split_and_format_normalize(text: str) -> list[str]: ...
|
||||||
def email_normalize(text: str, strict: bool = ...) -> str | Literal[False]: ...
|
def email_normalize(text: str, strict: bool = ...) -> str | Literal[False]: ...
|
||||||
def email_normalize_all(text: str) -> list[str]: ...
|
def email_normalize_all(text: str) -> list[str]: ...
|
||||||
|
def email_anonymize(normalized_email: str, *, redact_domain: bool = ...) -> str: ...
|
||||||
def email_domain_extract(email: str) -> str | Literal[False]: ...
|
def email_domain_extract(email: str) -> str | Literal[False]: ...
|
||||||
def email_domain_normalize(domain: str) -> str | Literal[False]: ...
|
def email_domain_normalize(domain: str) -> str | Literal[False]: ...
|
||||||
def url_domain_extract(url: str) -> str | Literal[False]: ...
|
def url_domain_extract(url: str) -> str | Literal[False]: ...
|
||||||
@@ -67,3 +69,4 @@ def decode_message_header(
|
|||||||
) -> str: ...
|
) -> str: ...
|
||||||
def formataddr(pair: tuple[str, str], charset: str = ...) -> str: ...
|
def formataddr(pair: tuple[str, str], charset: str = ...) -> str: ...
|
||||||
def encapsulate_email(old_email: str, new_email: str) -> str: ...
|
def encapsulate_email(old_email: str, new_email: str) -> str: ...
|
||||||
|
def unfold_references(msg_references: str) -> list[str]: ...
|
||||||
|
|||||||
@@ -38,6 +38,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 | None]: ...
|
||||||
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: ...
|
||||||
@@ -45,6 +49,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