mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
from typing import IO, Any, Callable, Sequence, Union
|
||||
from typing import IO, Any, Callable, Sequence
|
||||
|
||||
__all__ = ["Timer", "timeit", "repeat", "default_timer"]
|
||||
|
||||
_Timer = Callable[[], float]
|
||||
_Stmt = Union[str, Callable[[], Any]]
|
||||
_Stmt = str | Callable[[], Any]
|
||||
|
||||
default_timer: _Timer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user