mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add enumera (#378)
This commit is contained in:
committed by
Matthias Kramm
parent
df5c64e247
commit
1d5df0bd7b
@@ -2,7 +2,7 @@
|
||||
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
from typing import Any, Optional, Callable, TypeVar, Union, Mapping, Sequence
|
||||
from typing import Any, Optional, Callable, TypeVar, Union, Mapping, Sequence, List
|
||||
|
||||
class Thread:
|
||||
name = ... # type: str
|
||||
@@ -62,3 +62,8 @@ class Condition:
|
||||
def wait_for(self, predicate: Callable[[], _T], timeout: float = ...) -> Union[_T, bool]: ...
|
||||
def __enter__(self) -> bool: ...
|
||||
def __exit__(self, *args): ...
|
||||
|
||||
def current_thread() -> Thread: ...
|
||||
def active_count() -> int: ...
|
||||
def enumerate() -> List[Thread]: ...
|
||||
def main_thread() -> Thread: ...
|
||||
|
||||
Reference in New Issue
Block a user