mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
Use lowercase type everywhere (#6853)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from collections.abc import Awaitable, Callable, Iterator, Sequence
|
||||
from datetime import date, datetime, timedelta
|
||||
from numbers import Real
|
||||
from typing import Any, Type, TypeVar, Union, overload
|
||||
from typing import Any, TypeVar, Union, overload
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_Freezable = Union[str, datetime, date, timedelta]
|
||||
@@ -35,7 +35,7 @@ class _freeze_time:
|
||||
auto_tick_seconds: float,
|
||||
) -> None: ...
|
||||
@overload
|
||||
def __call__(self, func: Type[_T]) -> Type[_T]: ...
|
||||
def __call__(self, func: type[_T]) -> type[_T]: ...
|
||||
@overload
|
||||
def __call__(self, func: Callable[..., Awaitable[_T]]) -> Callable[..., Awaitable[_T]]: ...
|
||||
@overload
|
||||
@@ -44,7 +44,7 @@ class _freeze_time:
|
||||
def __exit__(self, *args: Any) -> None: ...
|
||||
def start(self) -> Any: ...
|
||||
def stop(self) -> None: ...
|
||||
def decorate_class(self, klass: Type[_T]) -> _T: ...
|
||||
def decorate_class(self, klass: type[_T]) -> _T: ...
|
||||
def decorate_coroutine(self, coroutine: _T) -> _T: ...
|
||||
def decorate_callable(self, func: Callable[..., _T]) -> Callable[..., _T]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user