From 618a2988856fde2dbda789532cdb1b1cc03358cb Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 12 Nov 2024 10:01:41 +0100 Subject: [PATCH] More type hint removal for python 2.7 --- gazu/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gazu/client.py b/gazu/client.py index 2c7e287d..a0922fd3 100644 --- a/gazu/client.py +++ b/gazu/client.py @@ -303,7 +303,7 @@ def delete(path, params=None, client=default_client): return response.text -def get_message_from_response(response: requests.Request, default_message: str = "No additional information"): +def get_message_from_response(response, default_message="No additional information"): """ A utility function that handles Zou's inconsistent message keys. For a given request, checks if any error messages or regular messages were given and returns their value.