mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
markdown: Accept legacy Pattern in inlinePatterns registry (#11027)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
@@ -21,7 +21,7 @@ class _ReadableStream(Protocol):
|
||||
|
||||
class Markdown:
|
||||
preprocessors: Registry[preprocessors.Preprocessor]
|
||||
inlinePatterns: Registry[inlinepatterns.InlineProcessor]
|
||||
inlinePatterns: Registry[inlinepatterns.Pattern]
|
||||
treeprocessors: Registry[treeprocessors.Treeprocessor]
|
||||
postprocessors: Registry[postprocessors.Postprocessor]
|
||||
parser: blockparser.BlockParser
|
||||
|
||||
@@ -38,6 +38,6 @@ class SmartyExtension(Extension):
|
||||
def educateEllipses(self, md: Markdown) -> None: ...
|
||||
def educateAngledQuotes(self, md: Markdown) -> None: ...
|
||||
def educateQuotes(self, md: Markdown) -> None: ...
|
||||
inlinePatterns: util.Registry[inlinepatterns.InlineProcessor]
|
||||
inlinePatterns: util.Registry[inlinepatterns.Pattern]
|
||||
|
||||
def makeExtension(**kwargs) -> SmartyExtension: ...
|
||||
|
||||
@@ -6,7 +6,7 @@ from xml.etree.ElementTree import Element
|
||||
from markdown import util
|
||||
from markdown.core import Markdown
|
||||
|
||||
def build_inlinepatterns(md: Markdown, **kwargs) -> util.Registry[InlineProcessor]: ...
|
||||
def build_inlinepatterns(md: Markdown, **kwargs) -> util.Registry[Pattern]: ...
|
||||
|
||||
NOIMG: str
|
||||
BACKTICK_RE: str
|
||||
|
||||
Reference in New Issue
Block a user