-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HfFileSystem] Fix glob with pattern without wildcards #2056
Conversation
@@ -557,7 +557,7 @@ def info(self, path: str, refresh: bool = False, revision: Optional[str] = None, | |||
def exists(self, path, **kwargs): | |||
"""Is there a file at the given path""" | |||
try: | |||
self.info(path, expand_info=False, **kwargs) | |||
self.info(path, **{**kwargs, "expand_info": False}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was causing a TypeError: huggingface_hub.hf_file_system.HfFileSystem.info() got multiple values for keyword argument 'expand_info'
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2056 +/- ##
==========================================
+ Coverage 80.36% 80.70% +0.34%
==========================================
Files 71 71
Lines 8519 8519
==========================================
+ Hits 6846 6875 +29
+ Misses 1673 1644 -29 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense!
@lhoestq I just shipped hot-fix release 0.21.2: |
Thank you ! |
It was reported in huggingface/datasets#6687
This is currently impacting
datasets
and DVC folks (preventing to use the latest fsspec versions) so it would be great to have a patch release once it's merged