mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +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:
@@ -0,0 +1,3 @@
|
||||
# Deprecated types are infered as functions:
|
||||
markdown.extensions.abbr.AbbrPreprocessor
|
||||
markdown.extensions.abbr.AbbrInlineProcessor
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version = "3.6.*"
|
||||
version = "3.7.*"
|
||||
upstream_repository = "https://github.com/Python-Markdown/markdown"
|
||||
partial_stub = true
|
||||
|
||||
|
||||
@@ -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