Skip to content

Commit

Permalink
Fix mypy warnings
Browse files Browse the repository at this point in the history
I’m silencing the ClientResponseError arguments since this is only a mock of the real thing and we have no need for those two arguments and the class does not really require them for the things we are doing.
  • Loading branch information
frwickst committed Dec 27, 2023
1 parent 1f009dc commit fcbe170
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def __init__(
async def json(self) -> dict[str, Any]:
return self._json

def raise_for_status(self):
def raise_for_status(self) -> None:
if self.status >= 400:
raise ClientResponseError(
None,
None,
None, # type: ignore
None, # type: ignore
status=self.status,
message="Bad Request",
headers=None,
Expand Down

0 comments on commit fcbe170

Please sign in to comment.