mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 09:48:40 +08:00
Use TypeAlias where possible for type aliases (#7630)
This commit is contained in:
@@ -2,9 +2,10 @@ from collections.abc import Awaitable, Callable, Iterator, Sequence
|
||||
from datetime import date, datetime, timedelta
|
||||
from numbers import Real
|
||||
from typing import Any, TypeVar, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_Freezable = str | datetime | date | timedelta
|
||||
_Freezable: TypeAlias = str | datetime | date | timedelta
|
||||
|
||||
class TickingDateTimeFactory:
|
||||
def __init__(self, time_to_freeze: datetime, start: datetime) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user