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:
Eric Traut
2021-02-20 19:53:36 -07:00
committed by GitHub
parent 38a1c344c9
commit e717150b23

View File

@@ -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: ...