diff --git a/stubs/Markdown/@tests/stubtest_allowlist.txt b/stubs/Markdown/@tests/stubtest_allowlist.txt index a3981e680..60569f646 100644 --- a/stubs/Markdown/@tests/stubtest_allowlist.txt +++ b/stubs/Markdown/@tests/stubtest_allowlist.txt @@ -9,3 +9,4 @@ markdown.extensions.legacy_attrs.LegacyAttrs.run markdown.extensions.toc.TocTreeprocessor.run markdown.extensions.toc.slugify markdown.preprocessors.ReferencePreprocessor +markdown.postprocessors.UnescapePostprocessor # deprecated diff --git a/stubs/Markdown/METADATA.toml b/stubs/Markdown/METADATA.toml index b713bbfd1..27115ac40 100644 --- a/stubs/Markdown/METADATA.toml +++ b/stubs/Markdown/METADATA.toml @@ -1 +1 @@ -version = "3.3.*" +version = "3.4.*" diff --git a/stubs/Markdown/markdown/blockparser.pyi b/stubs/Markdown/markdown/blockparser.pyi index fa9a0bf88..69fd02de7 100644 --- a/stubs/Markdown/markdown/blockparser.pyi +++ b/stubs/Markdown/markdown/blockparser.pyi @@ -17,8 +17,6 @@ class BlockParser: state: State[Any] # TODO: possible to get rid of Any? md: Markdown def __init__(self, md: Markdown) -> None: ... - @property - def markdown(self): ... # deprecated root: Element def parseDocument(self, lines: Iterable[str]) -> ElementTree: ... def parseChunk(self, parent: Element, text: str) -> None: ... diff --git a/stubs/Markdown/markdown/extensions/tables.pyi b/stubs/Markdown/markdown/extensions/tables.pyi index 2250cae7e..39a4e96b8 100644 --- a/stubs/Markdown/markdown/extensions/tables.pyi +++ b/stubs/Markdown/markdown/extensions/tables.pyi @@ -12,7 +12,7 @@ class TableProcessor(BlockProcessor): RE_END_BORDER: Any border: bool = ... separator: str = ... - def __init__(self, parser) -> None: ... + def __init__(self, parser, config) -> None: ... class TableExtension(Extension): ... diff --git a/stubs/Markdown/markdown/inlinepatterns.pyi b/stubs/Markdown/markdown/inlinepatterns.pyi index 0e01f902b..3483f3236 100644 --- a/stubs/Markdown/markdown/inlinepatterns.pyi +++ b/stubs/Markdown/markdown/inlinepatterns.pyi @@ -39,8 +39,6 @@ class Pattern: compiled_re: Any md: Any def __init__(self, pattern, md: Any | None = ...) -> None: ... - @property - def markdown(self): ... def getCompiledRegExp(self): ... def handleMatch(self, m: Match[str]) -> str | Element | None: ... def type(self): ... diff --git a/stubs/Markdown/markdown/pep562.pyi b/stubs/Markdown/markdown/pep562.pyi deleted file mode 100644 index 6246f8657..000000000 --- a/stubs/Markdown/markdown/pep562.pyi +++ /dev/null @@ -1,7 +0,0 @@ -class Version: - def __new__(cls, major, minor, micro, release: str = ..., pre: int = ..., post: int = ..., dev: int = ...): ... - -class Pep562: - def __init__(self, name) -> None: ... - def __dir__(self): ... - def __getattr__(self, name): ... diff --git a/stubs/Markdown/markdown/postprocessors.pyi b/stubs/Markdown/markdown/postprocessors.pyi index c0e9eb438..6b14388b6 100644 --- a/stubs/Markdown/markdown/postprocessors.pyi +++ b/stubs/Markdown/markdown/postprocessors.pyi @@ -13,6 +13,6 @@ class RawHtmlPostprocessor(Postprocessor): class AndSubstitutePostprocessor(Postprocessor): ... -class UnescapePostprocessor(Postprocessor): +class UnescapePostprocessor(Postprocessor): # deprecated RE: Pattern[str] def unescape(self, m): ... diff --git a/stubs/Markdown/markdown/util.pyi b/stubs/Markdown/markdown/util.pyi index a64063e91..66f6f2b33 100644 --- a/stubs/Markdown/markdown/util.pyi +++ b/stubs/Markdown/markdown/util.pyi @@ -1,8 +1,6 @@ from re import Pattern from typing import Any, overload -PY37: bool -__deprecated__: dict[str, tuple[str, Any]] BLOCK_LEVEL_ELEMENTS: Any STX: str ETX: str @@ -16,7 +14,6 @@ TAG_PLACEHOLDER: Any RTL_BIDI_RANGES: Any def deprecated(message: str, stacklevel: int = ...): ... -def isBlockLevel(tag: object) -> bool: ... def parseBoolValue(value: object, fail_on_errors: bool = ..., preserve_none: bool = ...) -> bool | None: ... def code_escape(text: str) -> str: ... @@ -25,8 +22,6 @@ class AtomicString(str): ... class Processor: md: Any def __init__(self, md: Any | None = ...) -> None: ... - @property - def markdown(self): ... class HtmlStash: html_counter: int = ...