Skip to content

Commit 609160f

Browse files
authored
fix empty siblings (#2503)
1 parent c4b593a commit 609160f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/huggingface_hub/hf_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ def __init__(self, **kwargs):
825825
)
826826
for sibling in siblings
827827
]
828-
if siblings
828+
if siblings is not None
829829
else None
830830
)
831831
self.spaces = kwargs.pop("spaces", None)
@@ -947,7 +947,7 @@ def __init__(self, **kwargs):
947947
)
948948
for sibling in siblings
949949
]
950-
if siblings
950+
if siblings is not None
951951
else None
952952
)
953953

@@ -1069,7 +1069,7 @@ def __init__(self, **kwargs):
10691069
)
10701070
for sibling in siblings
10711071
]
1072-
if siblings
1072+
if siblings is not None
10731073
else None
10741074
)
10751075
runtime = kwargs.pop("runtime", None)

0 commit comments

Comments
 (0)