Markdown: Fix BlockProcessor method return types (#8166)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2022-06-25 23:00:39 -07:00
committed by GitHub
parent f812d71ffa
commit 9ff393558a

View File

@@ -15,10 +15,10 @@ class BlockProcessor:
tab_length: int
def __init__(self, parser: BlockParser) -> None: ...
def lastChild(self, parent: Element) -> Element | None: ...
def detab(self, text: str, length: int | None = ...): ...
def looseDetab(self, text: str, level: int = ...): ...
def test(self, parent: Element, block: str) -> None: ...
def run(self, parent: Element, blocks: list[str]) -> None: ...
def detab(self, text: str, length: int | None = ...) -> str: ...
def looseDetab(self, text: str, level: int = ...) -> str: ...
def test(self, parent: Element, block: str) -> bool: ...
def run(self, parent: Element, blocks: list[str]) -> bool | None: ...
class ListIndentProcessor(BlockProcessor):
ITEM_TYPES: list[str]