mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 12:51:27 +08:00
Fix threading.pyi issues (#12304)
This commit is contained in:
@@ -12,9 +12,7 @@ _ctypes.pointer
|
||||
_ctypes.sizeof
|
||||
_thread.interrupt_main
|
||||
_thread.lock
|
||||
_thread.stack_size
|
||||
_thread.start_joinable_thread
|
||||
_thread.start_new_thread
|
||||
_tkinter.create
|
||||
asyncio.AbstractEventLoop.create_server
|
||||
asyncio.AbstractServer.abort_clients
|
||||
@@ -111,7 +109,6 @@ site.register_readline
|
||||
sre_compile.SRE_FLAG_TEMPLATE
|
||||
sre_constants.SRE_FLAG_TEMPLATE
|
||||
sre_parse.SRE_FLAG_TEMPLATE
|
||||
threading.stack_size
|
||||
tkinter.Misc.after_info
|
||||
tkinter.Misc.busy
|
||||
tkinter.Misc.busy_cget
|
||||
|
||||
@@ -13,7 +13,7 @@ error = RuntimeError
|
||||
def _count() -> int: ...
|
||||
@final
|
||||
class LockType:
|
||||
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
|
||||
def acquire(self, blocking: bool = True, timeout: float = -1) -> bool: ...
|
||||
def release(self) -> None: ...
|
||||
def locked(self) -> bool: ...
|
||||
def __enter__(self) -> bool: ...
|
||||
@@ -22,14 +22,14 @@ class LockType:
|
||||
) -> None: ...
|
||||
|
||||
@overload
|
||||
def start_new_thread(function: Callable[[Unpack[_Ts]], object], args: tuple[Unpack[_Ts]]) -> int: ...
|
||||
def start_new_thread(function: Callable[[Unpack[_Ts]], object], args: tuple[Unpack[_Ts]], /) -> int: ...
|
||||
@overload
|
||||
def start_new_thread(function: Callable[..., object], args: tuple[Any, ...], kwargs: dict[str, Any]) -> int: ...
|
||||
def start_new_thread(function: Callable[..., object], args: tuple[Any, ...], kwargs: dict[str, Any], /) -> int: ...
|
||||
def interrupt_main() -> None: ...
|
||||
def exit() -> NoReturn: ...
|
||||
def allocate_lock() -> LockType: ...
|
||||
def get_ident() -> int: ...
|
||||
def stack_size(size: int = ...) -> int: ...
|
||||
def stack_size(size: int = 0, /) -> int: ...
|
||||
|
||||
TIMEOUT_MAX: float
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ if sys.version_info >= (3, 10):
|
||||
def gettrace() -> TraceFunction | None: ...
|
||||
def getprofile() -> ProfileFunction | None: ...
|
||||
|
||||
def stack_size(size: int = ...) -> int: ...
|
||||
def stack_size(size: int = 0, /) -> int: ...
|
||||
|
||||
TIMEOUT_MAX: float
|
||||
|
||||
|
||||
Reference in New Issue
Block a user