Skip to content

Require filelock>=3.10.0 for mode= parameter support#3785

Open
Wauplin wants to merge 1 commit intomainfrom
fix/filelock-mode-compat
Open

Require filelock>=3.10.0 for mode= parameter support#3785
Wauplin wants to merge 1 commit intomainfrom
fix/filelock-mode-compat

Conversation

@Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Feb 6, 2026

The mode= parameter used in WeakFileLock was added in filelock 3.10.0 released in 03-2023. Pin the minimum version to avoid crashes with older versions.

Fixes #3777

(follow up PR after #3714 which introduced the mode= kwarg)


Note

Low Risk
Only changes a dependency lower bound; risk is limited to potential compatibility impacts for environments pinned to older filelock versions.

Overview
Prevents runtime failures on older filelock releases by raising the minimum required version in setup.py from unpinned filelock to filelock>=3.10.0, ensuring support for the mode= argument used by WeakFileLock.

Written by Cursor Bugbot for commit 80b22a2. This will update automatically on new commits. Configure here.

The `mode=` parameter used in `WeakFileLock` was added in filelock 3.10.0.
Pin the minimum version to avoid crashes with older versions.

Fixes #3777

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Wauplin Wauplin requested a review from hanouticelina February 6, 2026 14:45
@Wauplin
Copy link
Contributor Author

Wauplin commented Feb 6, 2026

(let's wait for confirmation from #3777 before merging)

@bot-ci-comment
Copy link

bot-ci-comment bot commented Feb 6, 2026

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue with downloading a model using hf cli.

1 participant