From 52c1fd4582d871018ec13e6c2f34b43b865fe78d Mon Sep 17 00:00:00 2001 From: Liora Milbaum Date: Fri, 17 Feb 2023 06:20:43 +0200 Subject: [PATCH] chore: http_request return type change deprecation warning --- gitlab/client.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gitlab/client.py b/gitlab/client.py index c3982f39d..4a0c6804f 100644 --- a/gitlab/client.py +++ b/gitlab/client.py @@ -749,6 +749,14 @@ def http_request( self._check_redirects(result.response) if 200 <= result.status_code < 300: + if gitlab.__version__ < "4.0.0": + utils.warn( + message=( + "\nReturn type of gl.http_request() is changeing " + "from version 4.0.0 to BackendResponse." + ), + category=DeprecationWarning, + ) return result.response def should_retry() -> bool: