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:
@@ -248,6 +248,8 @@ class Html(_String):
|
||||
sanitize_attributes: bool
|
||||
sanitize_style: bool
|
||||
sanitize_form: bool
|
||||
sanitize_conditional_comments: bool
|
||||
sanitize_output_method: str
|
||||
strip_style: bool
|
||||
strip_classes: bool
|
||||
def convert_to_column(
|
||||
|
||||
@@ -10,7 +10,9 @@ SANITIZE_TAGS: dict[str, Collection[str]]
|
||||
|
||||
def tag_quote(el: _Element) -> None: ...
|
||||
def html_normalize(
|
||||
src: str, filter_callback: Callable[[_Element], _Element] | None = ...
|
||||
src: str,
|
||||
filter_callback: Callable[[_Element], _Element] | None = ...,
|
||||
output_method: str = ...,
|
||||
) -> str: ...
|
||||
def html_sanitize(
|
||||
src: str,
|
||||
@@ -19,8 +21,10 @@ def html_sanitize(
|
||||
sanitize_attributes: bool = ...,
|
||||
sanitize_style: bool = ...,
|
||||
sanitize_form: bool = ...,
|
||||
sanitize_conditional_comments: bool = ...,
|
||||
strip_style: bool = ...,
|
||||
strip_classes: bool = ...,
|
||||
output_method: str = ...,
|
||||
) -> Markup: ...
|
||||
|
||||
URL_SKIP_PROTOCOL_REGEX: str
|
||||
@@ -34,6 +38,7 @@ def validate_url(url: str) -> str: ...
|
||||
def is_html_empty(html_content: str) -> bool: ...
|
||||
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 = ...
|
||||
) -> str: ...
|
||||
|
||||
@@ -178,6 +178,7 @@ class OrderedSet(MutableSet[_T], Generic[_T]):
|
||||
def discard(self, elem) -> None: ...
|
||||
def update(self, elems: Iterable) -> None: ...
|
||||
def difference_update(self, elems: Iterable) -> None: ...
|
||||
def intersection(self, *others): ...
|
||||
|
||||
class LastOrderedSet(OrderedSet[_T], Generic[_T]):
|
||||
def add(self, elem) -> None: ...
|
||||
|
||||
@@ -4,8 +4,6 @@ from typing import Any, BinaryIO, Iterable
|
||||
|
||||
from odoo.addons.base.models.ir_attachment import IrAttachment
|
||||
from PyPDF2 import PdfFileReader, PdfFileWriter
|
||||
from PyPDF2.generic import ArrayObject as ArrayObject
|
||||
from PyPDF2.utils import b_ as b_
|
||||
|
||||
DEFAULT_PDF_DATETIME_FORMAT: str
|
||||
REGEX_SUBTYPE_UNFORMATED: Pattern
|
||||
@@ -34,7 +32,7 @@ class OdooPdfFileReader(PdfFileReader):
|
||||
class OdooPdfFileWriter(PdfFileWriter):
|
||||
is_pdfa: bool
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def addAttachment(self, fname: str, fdata, subtype: str | None = ...) -> None: ...
|
||||
def addAttachment(self, name: str, data, subtype: str | None = ...) -> None: ...
|
||||
def embed_odoo_attachment(
|
||||
self, attachment: IrAttachment, subtype: str | None = ...
|
||||
) -> None: ...
|
||||
Reference in New Issue
Block a user