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:
@@ -174,10 +174,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: ...
|
||||
|
||||
@@ -40,7 +40,10 @@ def html_keep_url(text: str) -> str: ...
|
||||
def html_to_inner_content(html: str) -> str: ...
|
||||
def create_link(url: str, label: str) -> str: ...
|
||||
def html2plaintext(
|
||||
html: str, body_id: str | None = ..., encoding: str = ...
|
||||
html: str,
|
||||
body_id: str | None = ...,
|
||||
encoding: str = ...,
|
||||
include_references: bool = ...,
|
||||
) -> str: ...
|
||||
def plaintext2html(text: str, container_tag: str = ...) -> Markup: ...
|
||||
def append_content_to_html(
|
||||
@@ -61,6 +64,7 @@ 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_domain_extract(email: str) -> str | Literal[False]: ...
|
||||
@@ -73,3 +77,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]: ...
|
||||
|
||||
@@ -30,6 +30,7 @@ from xlwt import Worksheet
|
||||
from ..api import Environment
|
||||
from ..loglevels import exception_to_unicode as exception_to_unicode
|
||||
from ..loglevels import get_encodings as get_encodings
|
||||
from ..models import BaseModel
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_T1 = TypeVar("_T1")
|
||||
@@ -287,6 +288,12 @@ def hash_sign(
|
||||
expiration_hours: int | None = ...,
|
||||
) -> str: ...
|
||||
def verify_hash_signed(env: Environment, scope, payload): ...
|
||||
def limited_field_access_token(
|
||||
record: BaseModel, field_name: str, timestamp: str | None = ...
|
||||
) -> str: ...
|
||||
def verify_limited_field_access_token(
|
||||
record: BaseModel, field_name: str, access_token: str
|
||||
) -> bool: ...
|
||||
|
||||
ADDRESS_REGEX: Pattern
|
||||
|
||||
|
||||
Reference in New Issue
Block a user