mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-02 05:16:53 +08:00
Bump Markdown to 3.7.* (#12565)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sebastian Rittau <srittau@rittau.biz> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -1,15 +1,36 @@
|
||||
from re import Pattern
|
||||
from typing import ClassVar
|
||||
from typing_extensions import deprecated
|
||||
from xml.etree.ElementTree import Element
|
||||
|
||||
from markdown.blockparser import BlockParser
|
||||
from markdown.blockprocessors import BlockProcessor
|
||||
from markdown.core import Markdown
|
||||
from markdown.extensions import Extension
|
||||
from markdown.inlinepatterns import InlineProcessor
|
||||
from markdown.treeprocessors import Treeprocessor
|
||||
|
||||
class AbbrExtension(Extension): ...
|
||||
class AbbrExtension(Extension):
|
||||
def reset(self) -> None: ...
|
||||
def reset_glossary(self) -> None: ...
|
||||
def load_glossary(self, dictionary: dict[str, str]) -> None: ...
|
||||
|
||||
class AbbrPreprocessor(BlockProcessor):
|
||||
class AbbrTreeprocessor(Treeprocessor):
|
||||
RE: Pattern[str] | None
|
||||
abbrs: dict[str, str]
|
||||
def __init__(self, md: Markdown | None = None, abbrs: dict[str, str] | None = None) -> None: ...
|
||||
def iter_element(self, el: Element, parent: Element | None = None) -> None: ...
|
||||
|
||||
# Techinically it is the same type as `AbbrPreprocessor` just not deprecated.
|
||||
class AbbrBlockprocessor(BlockProcessor):
|
||||
RE: ClassVar[Pattern[str]]
|
||||
abbrs: dict[str, str]
|
||||
def __init__(self, parser: BlockParser, abbrs: dict[str, str]) -> None: ...
|
||||
|
||||
@deprecated("This class will be removed in the future; use `AbbrTreeprocessor` instead.")
|
||||
class AbbrPreprocessor(AbbrBlockprocessor): ...
|
||||
|
||||
@deprecated("This class will be removed in the future; use `AbbrTreeprocessor` instead.")
|
||||
class AbbrInlineProcessor(InlineProcessor):
|
||||
title: str
|
||||
def __init__(self, pattern: str, title: str) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user