diff --git a/docs/source/de/guides/repository.md b/docs/source/de/guides/repository.md index 1cbad3a610..942ac2ff52 100644 --- a/docs/source/de/guides/repository.md +++ b/docs/source/de/guides/repository.md @@ -106,7 +106,7 @@ Sie können auch die vorhandenen git-Referenzen von einem Repository mit [`list_ ```py >>> from huggingface_hub import list_repo_refs ->>> api.list_repo_refs("bigcode/the-stack", repo_type="dataset") +>>> list_repo_refs("bigcode/the-stack", repo_type="dataset") GitRefs( branches=[ GitRefInfo(name='main', ref='refs/heads/main', target_commit='18edc1591d9ce72aa82f56c4431b3c969b210ae3'), diff --git a/docs/source/en/guides/repository.md b/docs/source/en/guides/repository.md index 6e4140016c..787a01afb9 100644 --- a/docs/source/en/guides/repository.md +++ b/docs/source/en/guides/repository.md @@ -119,7 +119,7 @@ You can also list the existing git refs from a repository using [`list_repo_refs ```py >>> from huggingface_hub import list_repo_refs ->>> api.list_repo_refs("bigcode/the-stack", repo_type="dataset") +>>> list_repo_refs("bigcode/the-stack", repo_type="dataset") GitRefs( branches=[ GitRefInfo(name='main', ref='refs/heads/main', target_commit='18edc1591d9ce72aa82f56c4431b3c969b210ae3'), diff --git a/docs/source/en/package_reference/hf_file_system.md b/docs/source/en/package_reference/hf_file_system.md index af2db68792..f203ebd070 100644 --- a/docs/source/en/package_reference/hf_file_system.md +++ b/docs/source/en/package_reference/hf_file_system.md @@ -4,11 +4,11 @@ rendered properly in your Markdown viewer. # Filesystem API -The `HfFileSystem` class provides a pythonic file interface to the Hugging Face Hub based on [`fssepc`](https://filesystem-spec.readthedocs.io/en/latest/). +The `HfFileSystem` class provides a pythonic file interface to the Hugging Face Hub based on [`fsspec`](https://filesystem-spec.readthedocs.io/en/latest/). ## HfFileSystem -`HfFileSystem` is based on [fsspec](https://filesystem-spec.readthedocs.io/en/latest/), so it is compatible with most of the APIs that it offers. For more details, check out [our guide](../guides/hf_file_system) and the fsspec's [API Reference](https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem). +`HfFileSystem` is based on [fsspec](https://filesystem-spec.readthedocs.io/en/latest/), so it is compatible with most of the APIs that it offers. For more details, check out [our guide](../guides/hf_file_system) and fsspec's [API Reference](https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem). [[autodoc]] HfFileSystem - __init__ diff --git a/src/huggingface_hub/hf_api.py b/src/huggingface_hub/hf_api.py index 6f4fb07cd6..d0d029a444 100644 --- a/src/huggingface_hub/hf_api.py +++ b/src/huggingface_hub/hf_api.py @@ -6318,7 +6318,7 @@ def update_collection_item( Slug of the collection to update. Example: `"TheBloke/recent-models-64f9a55bb3115b4f513ec026"`. item_object_id (`str`): ID of the item in the collection. This is not the id of the item on the Hub (repo_id or paper id). - It must be retrieved from a [`CollectionItem`] object. Example: `collection.items[0]._id`. + It must be retrieved from a [`CollectionItem`] object. Example: `collection.items[0].item_object_id`. note (`str`, *optional*): A note to attach to the item in the collection. The maximum size for a note is 500 characters. position (`int`, *optional*):