Simplify and correct many numeric unions (#7906)

Unblocks PyCQA/flake8-pyi#222
This commit is contained in:
Alex Waygood
2022-05-21 15:25:00 +01:00
committed by GitHub
parent 7576805aee
commit 76a4bd796b
17 changed files with 30 additions and 26 deletions

View File

@@ -13,13 +13,13 @@ class _Acquire_ReturnProxy:
) -> None: ...
class BaseFileLock:
def __init__(self, lock_file: str, timeout: float | int | str = ...) -> None: ...
def __init__(self, lock_file: str, timeout: float | str = ...) -> None: ...
@property
def lock_file(self) -> str: ...
@property
def timeout(self) -> float: ...
@timeout.setter
def timeout(self, value: int | str | float) -> None: ... # type: ignore
def timeout(self, value: str | float) -> None: ... # type: ignore
@property
def is_locked(self) -> bool: ...
def acquire(self, timeout: float | None = ..., poll_intervall: float = ...) -> _Acquire_ReturnProxy: ...