Skip to content

Commit 7575f00

Browse files
Apply style fixes
1 parent 5426d7f commit 7575f00

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/huggingface_hub/errors.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def append_to_message(self, additional_message: str) -> None:
8585
self.args = (self.args[0] + additional_message,) + self.args[1:]
8686

8787
@classmethod
88-
def _reconstruct_hf_hub_http_error(cls, message: str, response: Response, server_message: Optional[str]) -> "HfHubHTTPError":
88+
def _reconstruct_hf_hub_http_error(
89+
cls, message: str, response: Response, server_message: Optional[str]
90+
) -> "HfHubHTTPError":
8991
return cls(message, response=response, server_message=server_message)
9092

9193
def __reduce_ex__(self, protocol):

tests/test_utils_errors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ def test_hf_hub_http_error_with_request_id_and_amzn_trace_id(self) -> None:
272272
def test_hf_hub_error_reconstruction(self) -> None:
273273
"""Test HfHubHTTPError is reconstructed properly."""
274274
from copy import deepcopy
275+
275276
mock_response = Response(status_code=404, request=Request(method="GET", url="https://huggingface.co/fake"))
276277
error = HfHubHTTPError("this is a message", response=mock_response)
277278
copy_error = deepcopy(error)

0 commit comments

Comments
 (0)