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