This repository has been archived by the owner on Dec 27, 2021. It is now read-only.
forked from python/typeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for markdown stubs (python#4758)
* AbbrPreprocessor subclasses BlockProcessor * Remove members inherited from base classes * Add missing markdown.Extension alias * Add missing Markdown members * Fix Extension.config type * Fix Pattern.handleMatch type
- Loading branch information
Showing
26 changed files
with
60 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from .core import Markdown as Markdown, markdown as markdown, markdownFromFile as markdownFromFile | ||
from .extensions import Extension as Extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from typing import Mapping, Sequence | ||
from typing import Any, Dict, List, Mapping, Tuple | ||
|
||
from markdown.core import Markdown | ||
|
||
class Extension: | ||
config: Mapping[str, str] = ... | ||
def __init__(self, **kwargs: Mapping[str, str]) -> None: ... | ||
def getConfig(self, key: str, default: str = ...) -> str: ... | ||
def getConfigs(self) -> Mapping[str, str]: ... | ||
def getConfigInfo(self) -> Sequence[Mapping[str, str]]: ... | ||
def setConfig(self, key: str, value: str) -> None: ... | ||
def setConfigs(self, items: Mapping[str, str]) -> None: ... | ||
config: Mapping[str, List[Any]] = ... | ||
def __init__(self, **kwargs: Any) -> None: ... | ||
def getConfig(self, key: str, default: Any = ...) -> Any: ... | ||
def getConfigs(self) -> Dict[str, Any]: ... | ||
def getConfigInfo(self) -> List[Tuple[str, str]]: ... | ||
def setConfig(self, key: str, value: Any) -> None: ... | ||
def setConfigs(self, items: Mapping[str, Any]) -> None: ... | ||
def extendMarkdown(self, md: Markdown) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
from typing import Any, Pattern | ||
|
||
from markdown.blockprocessors import BlockProcessor | ||
from markdown.extensions import Extension | ||
from markdown.inlinepatterns import InlineProcessor | ||
from markdown.preprocessors import Preprocessor | ||
|
||
ABBR_REF_RE: Pattern | ||
|
||
class AbbrExtension(Extension): | ||
def extendMarkdown(self, md) -> None: ... | ||
|
||
class AbbrPreprocessor(Preprocessor): | ||
def run(self, lines): ... | ||
class AbbrExtension(Extension): ... | ||
class AbbrPreprocessor(BlockProcessor): ... | ||
|
||
class AbbrInlineProcessor(InlineProcessor): | ||
title: Any | ||
def __init__(self, pattern, title) -> None: ... | ||
def handleMatch(self, m, data): ... # type: ignore | ||
|
||
def makeExtension(**kwargs): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.