Skip to content

Commit e93f84b

Browse files
authored
Merge pull request #1621 from JohnVillalovos/jlvillal/mypy_dep
chore: fix type-check issue shown by new requests-types
2 parents d97f79d + 0ee9aa4 commit e93f84b

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