Skip to content

Commit b693fe1

Browse files
authored
fix BaseFileLock.timeout's getter/setter being obscured by itself (#172)
1 parent efa8911 commit b693fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/filelock/_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, lock_file: str | os.PathLike[Any], timeout: float = -1) -> No
5656
self._lock_file_fd: int | None = None
5757

5858
# The default timeout value.
59-
self.timeout: float = timeout
59+
self._timeout: float = timeout
6060

6161
# We use this lock primarily for the lock counter.
6262
self._thread_lock: Lock = Lock()

0 commit comments

Comments
 (0)