mirror of
https://github.com/deepseek-ai/3FS.git
synced 2026-11-05 00:47:47 +00:00
[GH-ISSUE #432] hf3fs_cli rmtree: --help and an invalid --expire value both crash with TypeError #247
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#247
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?
Originally created by @sebxt on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/432
What happens
ExpireTypeinhf3fs_utils/cli.pyoverridesclick.ParamType.get_metavarwith the signatureget_metavar(self, param). That causes two crashes:hf3fs_cli rmtree --helpfails. Click 8.2 callsget_metavar(param=..., ctx=...):convertcallsself.get_metavar()with no arguments:What should happen
rmtree --helpprints the help text, and--expire 2hexits with code 2 and the message2h is invalid, valid options are [1h|3h|8h|1d|3d|7d].Repro
Neither command needs a 3FS mount; both fail during argument parsing.
Cause
get_metavarneeds to accept thectxargument added in click 8.2, andconvertneeds to passparam(andctx) when it calls it.