mirror of
https://github.com/deepseek-ai/3FS.git
synced 2026-11-05 00:47:47 +00:00
[PR #433] hf3fs_utils: fix ExpireType.get_metavar signature #432
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/3FS#432
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/3FS/pull/433
Author: @sebxt
Created: 10/19/2026
Status: 🔄 Open
Base:
main← Head:fix/hf3fs-cli-expire-metavar📝 Commits (1)
dfb693fhf3fs_utils: fix ExpireType.get_metavar signature📊 Changes
2 files changed (+17 additions, -2 deletions)
View changed files
📝
hf3fs_utils/cli.py(+2 -2)➕
tests/hf3fs_utils/test_cli.py(+15 -0)📄 Description
ExpireType.get_metavartook onlyparam, which breakshf3fs_cli rmtreein two ways:rmtree --helpraisesTypeError: ... unexpected keyword argument 'ctx'on click 8.2 and newer, since click now passesctxas well.--expirevalue (for example2h) raisesTypeError: ... missing 1 required positional argument: 'param'on every click version, becauseconvertcallsself.get_metavar()with no arguments. The user gets a traceback instead of the usage error.This change accepts an optional
ctxinget_metavarand passesparamandctxfromconvert. The signature works with both click 8.1 and 8.2+.Added
tests/hf3fs_utils/test_cli.pywith twoCliRunnertests (help output, invalid expire value). Both fail before the change and pass after it, on click 8.1.7 (invalid expire case) and click 8.5.0 (both cases). Run with:Fixes #432
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.