File: thread.pyi

package info (click to toggle)
mypy 0.470-complete-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,864 kB
  • ctags: 3,264
  • sloc: python: 21,838; makefile: 18
file content (33 lines) | stat: -rw-r--r-- 996 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
"""Stubs for the "thread" module."""
from typing import Callable, Any

def _count() -> int: ...

class error(Exception): ...

class LockType:
    def acquire(self, waitflag: int = ...) -> bool: ...
    def acquire_lock(self, waitflag: int = ...) -> 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 = ...) -> int: ...
def start_new_thread(function: Callable[..., Any], args: Any, kwargs: Any = ...) -> int: ...
def interrupt_main() -> 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 = ...) -> int: ...