Update stubs

This commit is contained in:
Trinh Anh Ngoc
2025-01-29 12:20:18 +07:00
parent 81c51a26cd
commit 493aab4d6e
3 changed files with 11 additions and 0 deletions

View File

@@ -177,10 +177,13 @@ class WorkerHTTP(Worker):
def start(self) -> None: ...
class WorkerCron(Worker):
alive_time: float
db_index: int
watchdog_timeout: int
def __init__(self, multi: PreforkServer) -> None: ...
def sleep(self) -> None: ...
alive: bool
def check_limits(self) -> None: ...
def process_work(self) -> None: ...
dbcursor: Cursor
def start(self) -> None: ...

View File

@@ -56,8 +56,10 @@ def generate_tracking_message_id(res_id: str) -> str: ...
def email_split_tuples(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_normalize(text: str) -> list[str]: ...
def email_normalize(text: str, strict: bool = ...) -> str | Literal[False]: ...
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_normalize(domain: str) -> str | Literal[False]: ...
def url_domain_extract(url: str) -> str | Literal[False]: ...
@@ -67,3 +69,4 @@ def decode_message_header(
) -> str: ...
def formataddr(pair: tuple[str, str], charset: str = ...) -> str: ...
def encapsulate_email(old_email: str, new_email: str) -> str: ...
def unfold_references(msg_references: str) -> list[str]: ...

View File

@@ -38,6 +38,10 @@ def translate_xml_node(
) -> _Element: ...
def parse_xml(text: str) -> _Element: ...
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 serialize_html(node: _Element) -> 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_term_converter(value: 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: ...
class GettextAlias: