mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 12:44:33 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
1 parent
b9adb7a874
commit
ee487304d7
578 files changed
+8080
-8966
No files matched your search
+2
-2
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Dict, List, NamedTuple, Optional, Tuple
|
||||
from typing import Any, Callable, Dict, List, NamedTuple, Tuple
|
||||
|
||||
class Event(NamedTuple):
|
||||
time: float
|
||||
@@ -25,7 +25,7 @@ class scheduler:
|
||||
argument: Tuple[Any, ...] = ...,
|
||||
kwargs: Dict[str, Any] = ...,
|
||||
) -> Event: ...
|
||||
def run(self, blocking: bool = ...) -> Optional[float]: ...
|
||||
def run(self, blocking: bool = ...) -> float | None: ...
|
||||
def cancel(self, event: Event) -> None: ...
|
||||
def empty(self) -> bool: ...
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user