From 7a44645b52a5ed626f53031308772b2d45ac8928 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 12 Nov 2024 09:55:59 +0100 Subject: [PATCH] Removed type hinting to support 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 b4e0f867..2c7e287d 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") -> str: +def get_message_from_response(response: requests.Request, default_message: str = "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.