Skip to content

Commit 8e84037

Browse files
lyle-nelLyle Nel
authored andcommitted
Constant was accidentally removed during deprecation transition (#913)
Co-authored-by: Lyle Nel <[email protected]>
1 parent 3ef413a commit 8e84037

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/huggingface_hub/snapshot_download.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
)
1313

1414
from ._snapshot_download import * # noqa
15+
from .constants import REPO_ID_SEPARATOR # noqa

tests/test_snapshot_download.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,3 +358,7 @@ def test_snapshot_download_import():
358358
from huggingface_hub.snapshot_download import snapshot_download as x # noqa
359359

360360
assert x is snapshot_download
361+
362+
363+
def test_snapshot_download_import_constant_not_raise():
364+
from huggingface_hub.snapshot_download import REPO_ID_SEPARATOR # noqa

0 commit comments

Comments
 (0)