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,8 +1,8 @@
from _typeshed.xml import DOMImplementation
from typing import Callable, Iterable, Tuple
from typing import Callable, Iterable
well_known_implementations: dict[str, str]
registered: dict[str, Callable[[], DOMImplementation]]
def registerDOMImplementation(name: str, factory: Callable[[], DOMImplementation]) -> None: ...
def getDOMImplementation(name: str | None = ..., features: str | Iterable[Tuple[str, str | None]] = ...) -> DOMImplementation: ...
def getDOMImplementation(name: str | None = ..., features: str | Iterable[tuple[str, str | None]] = ...) -> DOMImplementation: ...

View File

@@ -2,7 +2,7 @@ from typing import Any, Iterable, List, Tuple, Type, TypeVar
_T = TypeVar("_T")
StringTypes: Tuple[Type[str]]
StringTypes: tuple[Type[str]]
class NodeList(List[_T]):
length: int