Skip to content

Commit 0ee9aa4

Browse files
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.
1 parent d97f79d commit 0ee9aa4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitlab/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,8 @@ def http_request(
602602
# gitlab installation)
603603
req = requests.Request(verb, url, json=json, data=data, params=params, **opts)
604604
prepped = self.session.prepare_request(req)
605+
if TYPE_CHECKING:
606+
assert prepped.url is not None
605607
prepped.url = utils.sanitized_url(prepped.url)
606608
settings = self.session.merge_environment_settings(
607609
prepped.url, {}, streamed, verify, None

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy