mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 18:05:57 +08:00
Suppressed error in filelock stubs (#5039)
Added a # type: ignore comment to the `timeout` property setter in filelock to suppress errors about type mismatch between setter and getter. Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -23,7 +23,7 @@ class BaseFileLock:
|
||||
@property
|
||||
def timeout(self) -> float: ...
|
||||
@timeout.setter
|
||||
def timeout(self, value: Union[int, str, float]) -> None: ...
|
||||
def timeout(self, value: Union[int, str, float]) -> None: ... # type: ignore
|
||||
@property
|
||||
def is_locked(self) -> bool: ...
|
||||
def acquire(self, timeout: Optional[float] = ..., poll_intervall: float = ...) -> _Acquire_ReturnProxy: ...
|
||||
|
||||
Reference in New Issue
Block a user