Skip to content

Commit 1d5df0b

Browse files
fabianhjrmatthiaskramm
authored andcommitted
Add enumera (#378)
1 parent df5c64e commit 1d5df0b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

stdlib/3/threading.pyi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# NOTE: These are incomplete!
44

5-
from typing import Any, Optional, Callable, TypeVar, Union, Mapping, Sequence
5+
from typing import Any, Optional, Callable, TypeVar, Union, Mapping, Sequence, List
66

77
class Thread:
88
name = ... # type: str
@@ -62,3 +62,8 @@ class Condition:
6262
def wait_for(self, predicate: Callable[[], _T], timeout: float = ...) -> Union[_T, bool]: ...
6363
def __enter__(self) -> bool: ...
6464
def __exit__(self, *args): ...
65+
66+
def current_thread() -> Thread: ...
67+
def active_count() -> int: ...
68+
def enumerate() -> List[Thread]: ...
69+
def main_thread() -> Thread: ...

0 commit comments

Comments
 (0)