mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Rename .py to .pyi.
This commit is contained in:
53
2.7/thread.pyi
Normal file
53
2.7/thread.pyi
Normal file
@@ -0,0 +1,53 @@
|
||||
"""Stub file for the 'thread' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import List, Tuple, Dict, Undefined, GenericType
|
||||
|
||||
LockType = Undefined(lock)
|
||||
error = Undefined(object)
|
||||
|
||||
def _count() -> int: ...
|
||||
|
||||
def allocate() -> lock: ...
|
||||
|
||||
def allocate_lock() -> lock: ...
|
||||
|
||||
def exit() -> object:
|
||||
raise SystemExit()
|
||||
|
||||
def exit_thread() -> object:
|
||||
raise SystemExit()
|
||||
|
||||
def get_ident() -> int: ...
|
||||
|
||||
def interrupt_main() -> None: ...
|
||||
|
||||
def stack_size(*args, **kwargs) -> int:
|
||||
raise ValueError()
|
||||
|
||||
def start_new(*args, **kwargs) -> int:
|
||||
raise MemoryError()
|
||||
raise TypeError()
|
||||
|
||||
def start_new_thread(*args, **kwargs) -> int:
|
||||
raise MemoryError()
|
||||
raise TypeError()
|
||||
|
||||
|
||||
class _local(object):
|
||||
pass
|
||||
|
||||
class _localdummy(object):
|
||||
pass
|
||||
|
||||
class lock(object):
|
||||
def __enter__(*args, **kwargs) -> bool: ...
|
||||
def __exit__(*args, **kwargs) -> None: ...
|
||||
def acquire(*args, **kwargs) -> bool: ...
|
||||
def acquire_lock(*args, **kwargs) -> bool: ...
|
||||
def locked() -> bool: ...
|
||||
def locked_lock() -> bool: ...
|
||||
def release() -> None: ...
|
||||
def release_lock() -> None: ...
|
||||
Reference in New Issue
Block a user