mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 15:25:49 +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:
1 parent
38a1c344c9
commit
e717150b23
1 file changed
+1
-1
@@ -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