mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-18 15:54:13 +08:00
Apply fixes, remove duplicates.
Apply fixes to _random, cStringIO, errno, operator, sys, zlib, etc.; also, remove duplicate 2.7/math.pyi, 2.7/marshal.pyi.
This commit is contained in:
@@ -1,16 +1,33 @@
|
||||
"""Stubs for the "thread" module."""
|
||||
from typing import Callable, Any
|
||||
|
||||
def _count() -> int: ...
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
class LockType:
|
||||
def acquire(self, waitflag: int = None) -> bool: ...
|
||||
def acquire_lock(self, waitflag: int = None) -> bool: ...
|
||||
def release(self) -> None: ...
|
||||
def release_lock(self) -> None: ...
|
||||
def locked(self) -> bool: ...
|
||||
def locked_lock(self) -> bool: ...
|
||||
def __enter__(self) -> LockType: ...
|
||||
def __exit__(self, value: Any, traceback: Any) -> None: ...
|
||||
|
||||
class _local(object):
|
||||
pass
|
||||
|
||||
class _localdummy(object):
|
||||
pass
|
||||
|
||||
def start_new(function: Callable[..., Any], args: Any, kwargs: Any = None) -> int: ...
|
||||
def start_new_thread(function: Callable[..., Any], args: Any, kwargs: Any = None) -> int: ...
|
||||
def interrupt_main() -> None: ...
|
||||
def exit() -> None: ...
|
||||
def exit() -> None:
|
||||
raise SystemExit()
|
||||
def exit_thread() -> Any:
|
||||
raise SystemExit()
|
||||
def allocate_lock() -> LockType: ...
|
||||
def get_ident() -> int: ...
|
||||
def stack_size(size: int = None) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user