mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-05 01:17:39 +08:00
Simplify and correct many numeric unions (#7906)
Unblocks PyCQA/flake8-pyi#222
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user