huggingface_hub icon indicating copy to clipboard operation
huggingface_hub copied to clipboard

Update token type definition and arg description in `hf_file_system.py`

Open lappemic opened this issue 9 months ago • 1 comments

Refactor token argument in hf_file_system.py for consistency across the hub.

  • Standardize the type definition of the token parameter to Union[bool, str, None] = None
  • Unify docstring descriptions for the token parameter to enhance clarity and usage guidance

See #2251 and #2252 for related discussions.

Thought i just go on and open a PR for this.

lappemic avatar May 13 '24 08:05 lappemic

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.