Add (_)dummy_threading module, identical to threading (#3554)

* Add (_)dummy_threading module, identical to threading

* Remove unnecessary comment, add consistency check
This commit is contained in:
Rune Tynan
2020-01-18 10:42:32 -05:00
committed by Jelle Zijlstra
parent d0f57d7d38
commit 85afac3bd5
4 changed files with 203 additions and 1 deletions

View File

@@ -1,4 +1,3 @@
# Stubs for threading
from typing import (
Any, Callable, Iterable, List, Mapping, Optional, Tuple, Type, Union,
@@ -14,6 +13,8 @@ _PF = Callable[[FrameType, str, Any], None]
_T = TypeVar('_T')
__all__: List[str]
def active_count() -> int: ...
if sys.version_info < (3,):
def activeCount() -> int: ...