mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 11:01:27 +08:00
stdlib: correct many pos-or-kw arg names in dunder methods (#7451)
This commit is contained in:
1 parent
626ccdaee2
commit
f4ae363b56
27 files changed
+153
-162
No files matched your search
@@ -169,9 +169,7 @@ class _RLock:
|
||||
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
|
||||
def release(self) -> None: ...
|
||||
__enter__ = acquire
|
||||
def __exit__(
|
||||
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
||||
) -> None: ...
|
||||
def __exit__(self, t: type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...
|
||||
|
||||
RLock = _RLock
|
||||
|
||||
@@ -191,9 +189,7 @@ class Condition:
|
||||
|
||||
class Semaphore:
|
||||
def __init__(self, value: int = ...) -> None: ...
|
||||
def __exit__(
|
||||
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
||||
) -> None: ...
|
||||
def __exit__(self, t: type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...
|
||||
def acquire(self, blocking: bool = ..., timeout: float | None = ...) -> bool: ...
|
||||
def __enter__(self, blocking: bool = ..., timeout: float | None = ...) -> bool: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
|
||||
Reference in new issue
Block a user