Update stubs

This commit is contained in:
Trinh Anh Ngoc
2025-01-29 12:27:54 +07:00
parent fb90c64174
commit 204ed57ed8
2 changed files with 6 additions and 0 deletions

View File

@@ -176,10 +176,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]: ...
@@ -68,3 +70,4 @@ def decode_message_header(
def formataddr(pair: tuple[str, str], charset: str = ...) -> str: ...
def encapsulate_email(old_email: str, new_email: str) -> str: ...
def parse_contact_from_email(text: str) -> tuple[str, str]: ...
def unfold_references(msg_references: str) -> list[str]: ...