mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import Any, Dict, Generic, Iterable, Mapping, Tuple, TypeVar, Union, overload
|
||||
from typing import Any, Dict, Generic, Iterable, Mapping, TypeVar, Union, overload
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from types import GenericAlias
|
||||
@@ -32,7 +32,7 @@ class Morsel(Dict[str, Any], Generic[_T]):
|
||||
@overload # type: ignore
|
||||
def update(self, values: Mapping[str, str]) -> None: ...
|
||||
@overload
|
||||
def update(self, values: Iterable[Tuple[str, str]]) -> None: ...
|
||||
def update(self, values: Iterable[tuple[str, str]]) -> None: ...
|
||||
def isReservedKey(self, K: str) -> bool: ...
|
||||
def output(self, attrs: list[str] | None = ..., header: str = ...) -> str: ...
|
||||
def js_output(self, attrs: list[str] | None = ...) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user