Skip to content

Commit b42955b

Browse files
sguggerLysandreJik
andauthored
Fix argument order in create_repo for Repository.clone_from (#459)
* Fix argument order in `create_repo` for `Repository.clone_from` * Update src/huggingface_hub/repository.py Co-authored-by: Lysandre Debut <[email protected]> Co-authored-by: Lysandre Debut <[email protected]>
1 parent 6ec1457 commit b42955b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/huggingface_hub/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,8 @@ def clone_from(self, repo_url: str, use_auth_token: Union[bool, str, None] = Non
540540

541541
if namespace == user or namespace in valid_organisations:
542542
api.create_repo(
543-
token,
544543
repo_id,
544+
token=token,
545545
repo_type=self.repo_type,
546546
organization=namespace,
547547
exist_ok=True,

0 commit comments

Comments
 (0)