Skip to content

Commit 80b22a2

Browse files
Wauplinclaude
andcommitted
Require filelock>=3.10.0 for mode= parameter support
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>
1 parent 1346ac6 commit 80b22a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_version() -> str:
1717
HF_XET_VERSION = "hf-xet>=1.2.0,<2.0.0"
1818

1919
install_requires = [
20-
"filelock",
20+
"filelock>=3.10.0",
2121
"fsspec>=2023.5.0",
2222
f"{HF_XET_VERSION}; platform_machine=='x86_64' or platform_machine=='amd64' or platform_machine=='AMD64' or platform_machine=='arm64' or platform_machine=='aarch64'",
2323
"httpx>=0.23.0, <1",

0 commit comments

Comments
 (0)