mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 21:42:25 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import Any, Dict, Generic, Iterable, List, Mapping, Tuple, TypeVar, Union, overload
|
||||
from typing import Any, Dict, Generic, Iterable, Mapping, Tuple, TypeVar, Union, overload
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from types import GenericAlias
|
||||
@@ -34,9 +34,9 @@ class Morsel(Dict[str, Any], Generic[_T]):
|
||||
@overload
|
||||
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: ...
|
||||
def OutputString(self, attrs: List[str] | None = ...) -> str: ...
|
||||
def output(self, attrs: list[str] | None = ..., header: str = ...) -> str: ...
|
||||
def js_output(self, attrs: list[str] | None = ...) -> str: ...
|
||||
def OutputString(self, attrs: list[str] | None = ...) -> str: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
|
||||
@@ -44,8 +44,8 @@ class BaseCookie(Dict[str, Morsel[_T]], Generic[_T]):
|
||||
def __init__(self, input: _DataType | None = ...) -> None: ...
|
||||
def value_decode(self, val: str) -> _T: ...
|
||||
def value_encode(self, val: _T) -> str: ...
|
||||
def output(self, attrs: List[str] | None = ..., header: str = ..., sep: str = ...) -> str: ...
|
||||
def js_output(self, attrs: List[str] | None = ...) -> str: ...
|
||||
def output(self, attrs: list[str] | None = ..., header: str = ..., sep: str = ...) -> str: ...
|
||||
def js_output(self, attrs: list[str] | None = ...) -> str: ...
|
||||
def load(self, rawdata: _DataType) -> None: ...
|
||||
def __setitem__(self, key: str, value: str | Morsel[_T]) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user