add (overwrite with) mypy stubs, if available

This commit is contained in:
Matthias Kramm
2015-09-30 07:36:12 -07:00
parent 69e10b3aed
commit 337abed05a
432 changed files with 22360 additions and 776 deletions

View File

@@ -1,32 +1,16 @@
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:
raise SystemExit()
def exit_thread() -> Any:
raise SystemExit()
def exit() -> None: ...
def allocate_lock() -> LockType: ...
def get_ident() -> int: ...
def stack_size(size: int = None) -> int: ...