From 8eee4824ab481c424fdc118ee61dda7231692095 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Mon, 17 Jun 2024 09:20:12 +0200 Subject: [PATCH] avoid mypy error "Signature of "request" incompatible with supertype "Session" [override]" --- locust/clients.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust/clients.py b/locust/clients.py index 66c4763c3f..459a23a4a7 100644 --- a/locust/clients.py +++ b/locust/clients.py @@ -97,7 +97,7 @@ def rename_request(self, name: str) -> Generator[None, None, None]: finally: self.request_name = None - def request(self, method, url, name=None, catch_response=False, context={}, **kwargs) -> Response: + def request(self, method, url, name=None, catch_response=False, context={}, **kwargs): """ Constructs and sends a :py:class:`requests.Request`. Returns :py:class:`requests.Response` object.