Skip to content

Commit 2dd177b

Browse files
committed
refactor(client): let mypy know http_password is set
1 parent 8b692e8 commit 2dd177b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def _set_auth_info(self) -> None:
533533
self.headers.pop("PRIVATE-TOKEN", None)
534534
self.headers["JOB-TOKEN"] = self.job_token
535535

536-
if self.http_username:
536+
if self.http_username and self.http_password:
537537
self._http_auth = requests.auth.HTTPBasicAuth(
538538
self.http_username, self.http_password
539539
)

0 commit comments

Comments
 (0)