Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Mapping, Tuple
from typing import Any, Mapping
from markdown.core import Markdown
@@ -7,7 +7,7 @@ class Extension:
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 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: ...

View File

@@ -1,5 +1,5 @@
import typing
from typing import Any, Match, Tuple
from typing import Any, Match
from xml.etree.ElementTree import Element
def build_inlinepatterns(md, **kwargs): ...
@@ -48,7 +48,7 @@ class Pattern:
class InlineProcessor(Pattern):
safe_mode: bool = ...
def __init__(self, pattern, md: Any | None = ...) -> None: ...
def handleMatch(self, m: Match[str], data) -> Tuple[Element, int, int] | Tuple[None, None, None]: ... # type: ignore
def handleMatch(self, m: Match[str], data) -> tuple[Element, int, int] | tuple[None, None, None]: ... # type: ignore
class SimpleTextPattern(Pattern): ...
class SimpleTextInlineProcessor(InlineProcessor): ...