Update stubs

This commit is contained in:
Trinh Anh Ngoc
2025-03-26 16:30:51 +07:00
parent 7371bc055d
commit 6eb20132d1
2 changed files with 5 additions and 4 deletions

View File

@@ -276,10 +276,10 @@ class Datetime(Field[datetime.datetime]):
type: str type: str
column_type: tuple[str, str] column_type: tuple[str, str]
column_cast_from: tuple[str] column_cast_from: tuple[str]
start_of = date_utils.start_of start_of = staticmethod(date_utils.start_of)
end_of = date_utils.end_of end_of = staticmethod(date_utils.end_of)
add = date_utils.add add = staticmethod(date_utils.add)
subtract = date_utils.subtract subtract = staticmethod(date_utils.subtract)
@staticmethod @staticmethod
def now(*args) -> datetime.datetime: ... def now(*args) -> datetime.datetime: ...
@staticmethod @staticmethod

View File

@@ -27,6 +27,7 @@ HTML_TAG_URL_REGEX: str
def validate_url(url: str) -> str: ... def validate_url(url: str) -> str: ...
def is_html_empty(html_content: str) -> bool: ... def is_html_empty(html_content: str) -> bool: ...
def html_keep_url(text: str) -> str: ... def html_keep_url(text: str) -> str: ...
def create_link(url: str, label: str) -> str: ...
def html2plaintext( def html2plaintext(
html: str, body_id: str | None = ..., encoding: str = ... html: str, body_id: str | None = ..., encoding: str = ...
) -> str: ... ) -> str: ...