summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2021-10-06 07:40:27 -0700
committerJohn L. Villalovos <john@sodarock.com>2021-10-06 07:41:15 -0700
commit0ee9aa4117b1e0620ba3cade10ccb94944754071 (patch)
treec20c8fd07a79547b6e667a2851f4c8de5d2efe2c /gitlab
parentd97f79d0ec185014747a1e1b9c1f9e78db68dd51 (diff)
downloadgitlab-0ee9aa4117b1e0620ba3cade10ccb94944754071.tar.gz
chore: fix type-check issue shown by new requests-types
types-requests==2.25.9 changed a type-hint. Update code to handle this change.
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gitlab/client.py b/gitlab/client.py
index 6a1ed28..8bec64f 100644
--- a/gitlab/client.py
+++ b/gitlab/client.py
@@ -602,6 +602,8 @@ class Gitlab(object):
# gitlab installation)
req = requests.Request(verb, url, json=json, data=data, params=params, **opts)
prepped = self.session.prepare_request(req)
+ if TYPE_CHECKING:
+ assert prepped.url is not None
prepped.url = utils.sanitized_url(prepped.url)
settings = self.session.merge_environment_settings(
prepped.url, {}, streamed, verify, None