Use lowercase type everywhere (#6853)

This commit is contained in:
Alex Waygood
2022-01-08 15:09:29 +00:00
committed by GitHub
parent f8501d33c7
commit a40d79a4e6
172 changed files with 728 additions and 761 deletions

View File

@@ -1,5 +1,5 @@
import collections
from typing import Any, Generic, Iterable, Iterator, Mapping, Type, TypeVar, overload
from typing import Any, Generic, Iterable, Iterator, Mapping, TypeVar, overload
_S = TypeVar("_S")
_KT = TypeVar("_KT")
@@ -7,7 +7,7 @@ _VT = TypeVar("_VT")
class frozendict(Mapping[_KT, _VT], Generic[_KT, _VT]):
dict_cls: Type[dict[Any, Any]] = ...
dict_cls: type[dict[Any, Any]] = ...
@overload
def __init__(self, **kwargs: _VT) -> None: ...
@overload
@@ -24,4 +24,4 @@ class frozendict(Mapping[_KT, _VT], Generic[_KT, _VT]):
class FrozenOrderedDict(frozendict[_KT, _VT]):
dict_cls: Type[collections.OrderedDict[Any, Any]] = ...
dict_cls: type[collections.OrderedDict[Any, Any]] = ...