5555logger = logging .get_logger (__name__ )
5656
5757
58- # TODO: remove after deprecation period is over (v0.7 )
58+ # TODO: remove after deprecation period is over (v0.8 )
5959def _validate_repo_id_deprecation (repo_id , name , organization ):
6060 """Returns (name, organization) from the input."""
6161 if repo_id and not name and organization :
@@ -78,7 +78,7 @@ def _validate_repo_id_deprecation(repo_id, name, organization):
7878 elif name or organization :
7979 warnings .warn (
8080 "`name` and `organization` input arguments are deprecated and "
81- "will be removed in v0.7 . Pass `repo_id` instead." ,
81+ "will be removed in v0.8 . Pass `repo_id` instead." ,
8282 FutureWarning ,
8383 )
8484 else :
@@ -558,7 +558,7 @@ def login(self, username: str, password: str) -> str:
558558
559559 <Tip>
560560
561- Warning: Deprecated, will be removed in v0.7 . Please use
561+ Warning: Deprecated, will be removed in v0.8 . Please use
562562 [`HfApi.set_access_token`] instead.
563563
564564 </Tip>
@@ -583,7 +583,7 @@ def login(self, username: str, password: str) -> str:
583583 """
584584 warnings .warn (
585585 "HfApi.login: This method is deprecated in favor of `set_access_token`"
586- " and will be removed in v0.7 ." ,
586+ " and will be removed in v0.8 ." ,
587587 FutureWarning ,
588588 )
589589 path = f"{ self .endpoint } /api/login"
@@ -651,7 +651,7 @@ def _validate_or_retrieve_token(
651651 token (``str``, `optional`):
652652 Hugging Face token. Will default to the locally saved token if not provided.
653653 name (``str``, `optional`):
654- Name of the repository. This is deprecated in favor of repo_id and will be removed in v0.7 .
654+ Name of the repository. This is deprecated in favor of repo_id and will be removed in v0.8 .
655655 function_name (``str``, `optional`):
656656 If _validate_or_retrieve_token is called from a function, name of that function to be passed inside deprecation warning.
657657 Returns:
@@ -690,7 +690,7 @@ def logout(self, token: Optional[str] = None) -> None:
690690
691691 <Tip>
692692
693- Warning: Deprecated, will be removed in v0.7 . Please use
693+ Warning: Deprecated, will be removed in v0.8 . Please use
694694 [`HfApi.unset_access_token`] instead.
695695
696696 </Tip>
@@ -702,7 +702,7 @@ def logout(self, token: Optional[str] = None) -> None:
702702 """
703703 warnings .warn (
704704 "HfApi.logout: This method is deprecated in favor of `unset_access_token` "
705- "and will be removed in v0.7 ." ,
705+ "and will be removed in v0.8 ." ,
706706 FutureWarning ,
707707 )
708708 if token is None :
0 commit comments