mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-28 04:22:21 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user