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,6 +1,6 @@
import sys
from _typeshed import StrPath, SupportsWrite
from typing import IO, Any, List, Mapping, MutableMapping, Text, Type, Union
from typing import IO, Any, Mapping, MutableMapping, Text, Type, Union
if sys.version_info >= (3, 6):
_PathLike = StrPath
@@ -13,7 +13,7 @@ else:
class TomlDecodeError(Exception): ...
def load(f: _PathLike | List[Text] | IO[str], _dict: Type[MutableMapping[str, Any]] = ...) -> MutableMapping[str, Any]: ...
def load(f: _PathLike | list[Text] | IO[str], _dict: Type[MutableMapping[str, Any]] = ...) -> MutableMapping[str, Any]: ...
def loads(s: Text, _dict: Type[MutableMapping[str, Any]] = ...) -> MutableMapping[str, Any]: ...
def dump(o: Mapping[str, Any], f: SupportsWrite[str]) -> str: ...
def dumps(o: Mapping[str, Any]) -> str: ...