[stubsabot] Bump Markdown to 3.4.* (#8309)

This commit is contained in:
Shantanu
2022-07-18 04:04:27 -07:00
committed by GitHub
parent 4897e7ce9b
commit 38407a7904
8 changed files with 4 additions and 19 deletions

View File

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

View File

@@ -1 +1 @@
version = "3.3.*"
version = "3.4.*"

View File

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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -13,6 +13,6 @@ class RawHtmlPostprocessor(Postprocessor):
class AndSubstitutePostprocessor(Postprocessor): ...
class UnescapePostprocessor(Postprocessor):
class UnescapePostprocessor(Postprocessor): # deprecated
RE: Pattern[str]
def unescape(self, m): ...

View File

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