mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Remove empty __init__ methods (#8816)
This commit is contained in:
@@ -102,7 +102,6 @@ class _DummyThread(Thread):
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class Lock:
|
||||
def __init__(self) -> None: ...
|
||||
def __enter__(self) -> bool: ...
|
||||
def __exit__(
|
||||
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
||||
@@ -112,7 +111,6 @@ class Lock:
|
||||
def locked(self) -> bool: ...
|
||||
|
||||
class _RLock:
|
||||
def __init__(self) -> None: ...
|
||||
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
|
||||
def release(self) -> None: ...
|
||||
__enter__ = acquire
|
||||
@@ -148,7 +146,6 @@ class Semaphore:
|
||||
class BoundedSemaphore(Semaphore): ...
|
||||
|
||||
class Event:
|
||||
def __init__(self) -> None: ...
|
||||
def is_set(self) -> bool: ...
|
||||
def isSet(self) -> bool: ... # deprecated alias for is_set()
|
||||
def set(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user