mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-05 17:37:41 +08:00
32
stdlib/2/multiprocessing/__init__.pyi
Normal file
32
stdlib/2/multiprocessing/__init__.pyi
Normal file
@@ -0,0 +1,32 @@
|
||||
# Stubs for multiprocessing (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from multiprocessing.process import Process as Process, current_process as current_process, active_children as active_children
|
||||
from multiprocessing.util import SUBDEBUG as SUBDEBUG, SUBWARNING as SUBWARNING
|
||||
|
||||
class ProcessError(Exception): ...
|
||||
class BufferTooShort(ProcessError): ...
|
||||
class TimeoutError(ProcessError): ...
|
||||
class AuthenticationError(ProcessError): ...
|
||||
|
||||
def Manager(): ...
|
||||
def Pipe(duplex=True): ...
|
||||
def cpu_count(): ...
|
||||
def freeze_support(): ...
|
||||
def get_logger(): ...
|
||||
def log_to_stderr(level=None): ...
|
||||
def allow_connection_pickling(): ...
|
||||
def Lock(): ...
|
||||
def RLock(): ...
|
||||
def Condition(lock=None): ...
|
||||
def Semaphore(value=1): ...
|
||||
def BoundedSemaphore(value=1): ...
|
||||
def Event(): ...
|
||||
def Queue(maxsize=0): ...
|
||||
def JoinableQueue(maxsize=0): ...
|
||||
def Pool(processes=None, initializer=None, initargs=..., maxtasksperchild=None): ...
|
||||
def RawValue(typecode_or_type, *args): ...
|
||||
def RawArray(typecode_or_type, size_or_initializer): ...
|
||||
def Value(typecode_or_type, *args, **kwds): ...
|
||||
def Array(typecode_or_type, size_or_initializer, **kwds): ...
|
||||
39
stdlib/2/multiprocessing/process.pyi
Normal file
39
stdlib/2/multiprocessing/process.pyi
Normal file
@@ -0,0 +1,39 @@
|
||||
# Stubs for multiprocessing.process (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
def current_process(): ...
|
||||
def active_children(): ...
|
||||
|
||||
class Process:
|
||||
def __init__(self, group=None, target=None, name=None, args=..., kwargs=...): ...
|
||||
def run(self): ...
|
||||
def start(self): ...
|
||||
def terminate(self): ...
|
||||
def join(self, timeout=None): ...
|
||||
def is_alive(self): ...
|
||||
@property
|
||||
def name(self): ...
|
||||
@name.setter
|
||||
def name(self, name): ...
|
||||
@property
|
||||
def daemon(self): ...
|
||||
@daemon.setter
|
||||
def daemon(self, daemonic): ...
|
||||
@property
|
||||
def authkey(self): ...
|
||||
@authkey.setter
|
||||
def authkey(self, authkey): ...
|
||||
@property
|
||||
def exitcode(self): ...
|
||||
@property
|
||||
def ident(self): ...
|
||||
pid = ... # type: Any
|
||||
|
||||
class AuthenticationString(bytes):
|
||||
def __reduce__(self): ...
|
||||
|
||||
class _MainProcess(Process):
|
||||
def __init__(self): ...
|
||||
33
stdlib/2/multiprocessing/util.pyi
Normal file
33
stdlib/2/multiprocessing/util.pyi
Normal file
@@ -0,0 +1,33 @@
|
||||
# Stubs for multiprocessing.util (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
import threading
|
||||
|
||||
SUBDEBUG = ... # type: Any
|
||||
SUBWARNING = ... # type: Any
|
||||
|
||||
def sub_debug(msg, *args): ...
|
||||
def debug(msg, *args): ...
|
||||
def info(msg, *args): ...
|
||||
def sub_warning(msg, *args): ...
|
||||
def get_logger(): ...
|
||||
def log_to_stderr(level=None): ...
|
||||
def get_temp_dir(): ...
|
||||
def register_after_fork(obj, func): ...
|
||||
|
||||
class Finalize:
|
||||
def __init__(self, obj, callback, args=..., kwargs=None, exitpriority=None): ...
|
||||
def __call__(self, wr=None): ...
|
||||
def cancel(self): ...
|
||||
def still_active(self): ...
|
||||
|
||||
def is_exiting(): ...
|
||||
|
||||
class ForkAwareThreadLock:
|
||||
def __init__(self): ...
|
||||
|
||||
class ForkAwareLocal(threading.local):
|
||||
def __init__(self): ...
|
||||
def __reduce__(self): ...
|
||||
Reference in New Issue
Block a user