From e717150b23377992b9aeb91d560203d27d74c11a Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Sat, 20 Feb 2021 19:53:36 -0700 Subject: [PATCH] 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 --- stubs/filelock/filelock/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/filelock/filelock/__init__.pyi b/stubs/filelock/filelock/__init__.pyi index 84a648f43..5d5fcc235 100644 --- a/stubs/filelock/filelock/__init__.pyi +++ b/stubs/filelock/filelock/__init__.pyi @@ -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: ...