Skip to content

Commit

Permalink
fix empty siblings (#2503)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoestq authored Sep 2, 2024
1 parent c4b593a commit 609160f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/huggingface_hub/hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def __init__(self, **kwargs):
)
for sibling in siblings
]
if siblings
if siblings is not None
else None
)
self.spaces = kwargs.pop("spaces", None)
Expand Down Expand Up @@ -947,7 +947,7 @@ def __init__(self, **kwargs):
)
for sibling in siblings
]
if siblings
if siblings is not None
else None
)

Expand Down Expand Up @@ -1069,7 +1069,7 @@ def __init__(self, **kwargs):
)
for sibling in siblings
]
if siblings
if siblings is not None
else None
)
runtime = kwargs.pop("runtime", None)
Expand Down

0 comments on commit 609160f

Please sign in to comment.