Update stubs

This commit is contained in:
Trinh Anh Ngoc
2024-11-18 15:59:36 +07:00
parent e39a40547c
commit fb90c64174
3 changed files with 2 additions and 2 deletions

View File

@@ -33,6 +33,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: ...

View File

@@ -205,6 +205,7 @@ class OrderedSet(MutableSet):
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):
def add(self, elem) -> None: ...

View File

@@ -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