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,8 +1,8 @@
import datetime
from typing import Any, Iterator, Text, Type, TypeVar, Union
from typing import Any, Iterator, Text, TypeVar, Union
from typing_extensions import Literal
_RetType = Union[Type[float], Type[datetime.datetime]]
_RetType = Union[type[float], type[datetime.datetime]]
_SelfT = TypeVar("_SelfT", bound=croniter)
class CroniterError(ValueError): ...
@@ -74,5 +74,5 @@ def croniter_range(
ret_type: _RetType | None = ...,
day_or: bool = ...,
exclude_ends: bool = ...,
_croniter: Type[croniter] | None = ...,
_croniter: type[croniter] | None = ...,
) -> Iterator[Any]: ...