From 1d5df0bd7b69836d2a225553d2e5d632c8544d92 Mon Sep 17 00:00:00 2001 From: Fabian Heredia Montiel Date: Wed, 20 Jul 2016 12:53:34 -0500 Subject: [PATCH] Add enumera (#378) --- stdlib/3/threading.pyi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stdlib/3/threading.pyi b/stdlib/3/threading.pyi index 83f2307ae..363b4cf75 100644 --- a/stdlib/3/threading.pyi +++ b/stdlib/3/threading.pyi @@ -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: ...