Skip to content

Commit f72ab13

Browse files
committed
comment
1 parent ded5d85 commit f72ab13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/huggingface_hub/hf_file_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ class _Cached(_cached_base):
7575
This is a slightly modified version of `fsspec.spec._Cached` to improve it.
7676
In particular in `_tokenize` the pid isn't taken into account for the
7777
`fs_token` used to identify cache instances. The `fs_token` logic is also
78-
robust to defaults values and the order of the args.
78+
robust to defaults values and the order of the args. Finally new instances
79+
reuse the cache from instances in the main thread.
7980
"""
8081

8182
def __init__(cls, *args, **kwargs):

0 commit comments

Comments
 (0)