Skip to content

Commit

Permalink
fix BaseFileLock.timeout's getter/setter being obscured by itself (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
dearfl committed Nov 30, 2022
1 parent efa8911 commit b693fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filelock/_api.py
Expand Up @@ -56,7 +56,7 @@ def __init__(self, lock_file: str | os.PathLike[Any], timeout: float = -1) -> No
self._lock_file_fd: int | None = None

# The default timeout value.
self.timeout: float = timeout
self._timeout: float = timeout

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

0 comments on commit b693fe1

Please sign in to comment.