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,7 +1,7 @@
import typing
from _typeshed import StrPath
from datetime import tzinfo
from typing import Any, Iterable, Protocol, Sequence, Type
from typing import Any, Iterable, Protocol, Sequence
_T = typing.TypeVar("_T", bound="ZoneInfo")
@@ -14,9 +14,9 @@ class ZoneInfo(tzinfo):
def key(self) -> str: ...
def __init__(self, key: str) -> None: ...
@classmethod
def no_cache(cls: Type[_T], key: str) -> _T: ...
def no_cache(cls: type[_T], key: str) -> _T: ...
@classmethod
def from_file(cls: Type[_T], __fobj: _IOBytes, key: str | None = ...) -> _T: ...
def from_file(cls: type[_T], __fobj: _IOBytes, key: str | None = ...) -> _T: ...
@classmethod
def clear_cache(cls, *, only_keys: Iterable[str] = ...) -> None: ...