Skip to content

Commit

Permalink
Constant was accidentally removed during deprecation transition (#913)
Browse files Browse the repository at this point in the history
Co-authored-by: Lyle Nel <lyle@owlin.com>
  • Loading branch information
lyle-nel and Lyle Nel authored Jun 17, 2022
1 parent 00fad17 commit fbb8054
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/huggingface_hub/snapshot_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
)

from ._snapshot_download import * # noqa
from .constants import REPO_ID_SEPARATOR # noqa
4 changes: 4 additions & 0 deletions tests/test_snapshot_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,3 +358,7 @@ def test_snapshot_download_import():
from huggingface_hub.snapshot_download import snapshot_download as x # noqa

assert x is snapshot_download


def test_snapshot_download_import_constant_not_raise():
from huggingface_hub.snapshot_download import REPO_ID_SEPARATOR # noqa

0 comments on commit fbb8054

Please # to comment.