Deprecated: use :meth:`get_git_token` instead.
()
| 403 | |
| 404 | @staticmethod |
| 405 | def get_token() -> Optional[str]: |
| 406 | """Deprecated: use :meth:`get_git_token` instead.""" |
| 407 | import warnings |
| 408 | warnings.warn( |
| 409 | 'ModelScopeConfig.get_token() is deprecated, ' |
| 410 | 'use ModelScopeConfig.get_git_token() instead.', |
| 411 | DeprecationWarning, stacklevel=2) |
| 412 | return ModelScopeConfig.get_git_token() |
| 413 | |
| 414 | @staticmethod |
| 415 | def get_user_agent(user_agent: Union[Dict, str, None] = None) -> str: |
nothing calls this directly
no test coverage detected