Skip to content

Commit

Permalink
another place where mypy doesnt understand typing but pylance does...
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Holmberg committed Jun 17, 2024
1 parent 8eee482 commit 6804e32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions locust/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

class LocustResponse(Response):
error: Exception | None = None
request: Request | PreparedRequest | None = None

def raise_for_status(self) -> None:
if self.error:
Expand Down Expand Up @@ -187,7 +186,7 @@ def _send_request_safe_mode(self, method, url, **kwargs) -> Response | LocustRes
r = LocustResponse()
r.error = e
r.status_code = 0
r.request = e.request
r.request = e.request # type: ignore
return r


Expand Down

0 comments on commit 6804e32

Please sign in to comment.