Big diff: use lower-case list and dict (#5888)

This commit is contained in:
Akuli
2021-08-08 19:26:35 +03:00
committed by GitHub
parent 11f54c3407
commit ce11072dbe
325 changed files with 2196 additions and 2334 deletions

View File

@@ -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: ...