mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Replace non-ellipsis default arguments (#2550)
This commit is contained in:
committed by
Jelle Zijlstra
parent
b7d6bab83f
commit
cd75801aa5
@@ -26,19 +26,19 @@ class Queue(_BaseQueue[_T]):
|
||||
def cancel_join_thread(self) -> None: ...
|
||||
|
||||
def Manager(): ...
|
||||
def Pipe(duplex=True): ...
|
||||
def Pipe(duplex: bool = ...): ...
|
||||
def cpu_count() -> int: ...
|
||||
def freeze_support(): ...
|
||||
def get_logger(): ...
|
||||
def log_to_stderr(level=None): ...
|
||||
def log_to_stderr(level: Optional[Any] = ...): ...
|
||||
def allow_connection_pickling(): ...
|
||||
def Lock(): ...
|
||||
def RLock(): ...
|
||||
def Condition(lock=None): ...
|
||||
def Semaphore(value=1): ...
|
||||
def BoundedSemaphore(value=1): ...
|
||||
def Condition(lock: Optional[Any] = ...): ...
|
||||
def Semaphore(value: int = ...): ...
|
||||
def BoundedSemaphore(value: int = ...): ...
|
||||
def Event(): ...
|
||||
def JoinableQueue(maxsize=0): ...
|
||||
def JoinableQueue(maxsize: int = ...): ...
|
||||
def RawValue(typecode_or_type, *args): ...
|
||||
def RawArray(typecode_or_type, size_or_initializer): ...
|
||||
def Value(typecode_or_type, *args, **kwds): ...
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
from typing import Any
|
||||
from typing import Any, Optional
|
||||
|
||||
def current_process(): ...
|
||||
def active_children(): ...
|
||||
|
||||
class Process:
|
||||
def __init__(self, group=None, target=None, name=None, args=..., kwargs=...): ...
|
||||
def __init__(self, group: Optional[Any] = ..., target: Optional[Any] = ..., name: Optional[Any] = ..., args=...,
|
||||
kwargs=...): ...
|
||||
def run(self): ...
|
||||
def start(self): ...
|
||||
def terminate(self): ...
|
||||
def join(self, timeout=None): ...
|
||||
def join(self, timeout: Optional[Any] = ...): ...
|
||||
def is_alive(self): ...
|
||||
@property
|
||||
def name(self): ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any
|
||||
from typing import Any, Optional
|
||||
import threading
|
||||
|
||||
SUBDEBUG = ... # type: Any
|
||||
@@ -9,13 +9,13 @@ def debug(msg, *args): ...
|
||||
def info(msg, *args): ...
|
||||
def sub_warning(msg, *args): ...
|
||||
def get_logger(): ...
|
||||
def log_to_stderr(level=None): ...
|
||||
def log_to_stderr(level: Optional[Any] = ...): ...
|
||||
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 __init__(self, obj, callback, args=..., kwargs: Optional[Any] = ..., exitpriority: Optional[Any] = ...): ...
|
||||
def __call__(self, wr: Optional[Any] = ...): ...
|
||||
def cancel(self): ...
|
||||
def still_active(self): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user