diff --git a/src/huggingface_hub/__init__.py b/src/huggingface_hub/__init__.py index d1b46db2a8..a869ff9b2e 100644 --- a/src/huggingface_hub/__init__.py +++ b/src/huggingface_hub/__init__.py @@ -46,7 +46,7 @@ from typing import TYPE_CHECKING -__version__ = "0.27.0.dev0" +__version__ = "0.28.0.rc0" # Alphabetical order of definitions is ensured in tests # WARNING: any comment added in this dictionary definition will be lost when diff --git a/tests/testing_utils.py b/tests/testing_utils.py index 10bdf93263..6f6d67c4c0 100644 --- a/tests/testing_utils.py +++ b/tests/testing_utils.py @@ -396,9 +396,9 @@ def _inner(*args, **kwargs): if name == "self": continue assert parameter.annotation is Mock - assert name in mocks, ( - f"Mock `{name}` not found for test `{fn.__name__}`. Available: {', '.join(sorted(mocks.keys()))}" - ) + assert ( + name in mocks + ), f"Mock `{name}` not found for test `{fn.__name__}`. Available: {', '.join(sorted(mocks.keys()))}" new_kwargs[name] = mocks[name] # Run test only with a subset of mocks