Skip to content

Commit

Permalink
chore: fix type-check issue shown by new requests-types
Browse files Browse the repository at this point in the history
types-requests==2.25.9 changed a type-hint. Update code to handle this
change.
  • Loading branch information
JohnVillalovos committed Oct 6, 2021
1 parent d97f79d commit 0ee9aa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitlab/client.py
Expand Up @@ -602,6 +602,8 @@ def http_request(
# 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
Expand Down

0 comments on commit 0ee9aa4

Please sign in to comment.