Backport many Self-related changes to the Python-2 stdlib (#7128)

This commit is contained in:
Alex Waygood
2022-02-04 18:10:05 +00:00
committed by GitHub
parent 57b2bae031
commit 51cdd2c6be
19 changed files with 37 additions and 21 deletions

View File

@@ -1,9 +1,11 @@
from typing import Any, Callable
from typing_extensions import final
def _count() -> int: ...
class error(Exception): ...
@final
class LockType:
def acquire(self, waitflag: int = ...) -> bool: ...
def acquire_lock(self, waitflag: int = ...) -> bool: ...