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,9 +1,9 @@
from collections.abc import Callable, Mapping, Sequence
from typing import Any, Generic, Type, TypeVar, overload
from typing import Any, Generic, TypeVar, overload
_F = TypeVar("_F", bound=Callable[..., Any])
_T = TypeVar("_T")
_TT = TypeVar("_TT", bound=Type[Any])
_TT = TypeVar("_TT", bound=type[Any])
_R = TypeVar("_R")
__all__ = (
@@ -62,10 +62,10 @@ class NonCallableMock(Base, Any):
def __new__(__cls, *args: Any, **kw: Any) -> NonCallableMock: ...
def __init__(
self,
spec: list[str] | object | Type[object] | None = ...,
spec: list[str] | object | type[object] | None = ...,
wraps: Any | None = ...,
name: str | None = ...,
spec_set: list[str] | object | Type[object] | None = ...,
spec_set: list[str] | object | type[object] | None = ...,
parent: NonCallableMock | None = ...,
_spec_state: Any | None = ...,
_new_name: str = ...,
@@ -174,7 +174,7 @@ class _patch_dict:
class _patcher:
TEST_PREFIX: str
dict: Type[_patch_dict]
dict: type[_patch_dict]
@overload
def __call__( # type: ignore[misc]
self,