diff --git a/stubs/Markdown/METADATA.toml b/stubs/Markdown/METADATA.toml index c68111021308..9ebbbb15ac35 100644 --- a/stubs/Markdown/METADATA.toml +++ b/stubs/Markdown/METADATA.toml @@ -1,2 +1,2 @@ -version = "~=3.11.3" +version = "~=3.11.4" upstream-repository = "https://github.com/Python-Markdown/markdown" diff --git a/stubs/Markdown/markdown/inlinepatterns.pyi b/stubs/Markdown/markdown/inlinepatterns.pyi index 6c7060030e2b..96a4e669e9cb 100644 --- a/stubs/Markdown/markdown/inlinepatterns.pyi +++ b/stubs/Markdown/markdown/inlinepatterns.pyi @@ -75,6 +75,8 @@ class HtmlInlineProcessor(InlineProcessor): def unescape(self, text: str) -> str: ... def backslash_unescape(self, text: str) -> str: ... +class EvaluatedText(str): ... + class Delimiter: stack: deque[tuple[int, int, bool, int]] tag_count: int @@ -109,8 +111,8 @@ class DelimiterProcessor(InlineProcessor): def add(self, token: str, tags: str, smart: bool = False, double: bool = False) -> None: ... def remove(self, token: str) -> None: ... def reset(self) -> None: ... - def increment_next_position(self, start: int, count: int) -> None: ... - def get_cached_result(self, pos: int, data: str) -> tuple[Element, int, int]: ... + def build_cache(self, data: str) -> None: ... + def get_cached_result(self, pos: int | None = None) -> tuple[Element, int, int]: ... @staticmethod def rule_of_3(opener: int, closer: int) -> bool: ... def get_match(self, data: str, start: int) -> re.Match[str] | None: ... @@ -123,6 +125,7 @@ class DelimiterProcessor(InlineProcessor): class LinkInlineProcessor(InlineProcessor): RE_LINK: ClassVar[re.Pattern[str]] RE_TITLE_CLEAN: ClassVar[re.Pattern[str]] + def __init__(self, pattern: str, md: Markdown | None = None) -> None: ... def getLink(self, data: str, index: int) -> tuple[str, str | None, int, bool]: ... def getText(self, data: str, index: int) -> tuple[str, int, bool]: ...