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,6 +1,6 @@
import sys
from _typeshed import StrPath
from typing import IO, Any, Container, Iterable, Sequence, Type, TypeVar, overload
from typing import IO, Any, Container, Iterable, Sequence, TypeVar, overload
from typing_extensions import Literal
class NullTranslations:
@@ -45,7 +45,7 @@ if sys.version_info >= (3, 11):
domain: str,
localedir: StrPath | None = ...,
languages: Iterable[str] | None = ...,
class_: Type[_T] = ...,
class_: type[_T] = ...,
fallback: Literal[False] = ...,
) -> _T: ...
@overload
@@ -53,7 +53,7 @@ if sys.version_info >= (3, 11):
domain: str,
localedir: StrPath | None = ...,
languages: Iterable[str] | None = ...,
class_: Type[Any] = ...,
class_: type[Any] = ...,
fallback: Literal[True] = ...,
) -> Any: ...
def install(domain: str, localedir: StrPath | None = ..., names: Container[str] | None = ...) -> None: ...
@@ -73,7 +73,7 @@ else:
domain: str,
localedir: StrPath | None = ...,
languages: Iterable[str] | None = ...,
class_: Type[_T] = ...,
class_: type[_T] = ...,
fallback: Literal[False] = ...,
codeset: str | None = ...,
) -> _T: ...
@@ -82,7 +82,7 @@ else:
domain: str,
localedir: StrPath | None = ...,
languages: Iterable[str] | None = ...,
class_: Type[Any] = ...,
class_: type[Any] = ...,
fallback: Literal[True] = ...,
codeset: str | None = ...,
) -> Any: ...