mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use TypeAlias where possible for type aliases (#7630)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
from typing import IO, Any, Callable, Sequence
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
__all__ = ["Timer", "timeit", "repeat", "default_timer"]
|
||||
|
||||
_Timer = Callable[[], float]
|
||||
_Stmt = str | Callable[[], Any]
|
||||
_Timer: TypeAlias = Callable[[], float]
|
||||
_Stmt: TypeAlias = str | Callable[[], Any]
|
||||
|
||||
default_timer: _Timer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user