Skip to content

Commit

Permalink
make style
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Nov 21, 2023
1 parent b3535e7 commit ac1204c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/peft/utils/hub_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
# limitations under the License.

from typing import Optional

from huggingface_hub import get_hf_file_metadata, hf_hub_url
from huggingface_hub.utils import EntryNotFoundError


def hub_file_exists(repo_id: str, filename: str, revision: str = None, repo_type: str = None, token: Optional[str] = None, **kwargs) -> bool:
def hub_file_exists(
repo_id: str, filename: str, revision: str = None, repo_type: str = None, token: Optional[str] = None, **kwargs
) -> bool:
r"""
Checks if a file exists in a remote Hub repository.
"""
Expand Down

0 comments on commit ac1204c

Please sign in to comment.