diff options
| author | Nejc Habjan <nejc.habjan@siemens.com> | 2023-03-27 12:06:28 +0200 |
|---|---|---|
| committer | Nejc Habjan <hab.nejc@gmail.com> | 2023-03-27 13:26:15 +0200 |
| commit | 2dd177bf83fdf62f0e9bdcb3bc41d5e4f5631504 (patch) | |
| tree | 68e9cb953c758d08013d9e82c25f6be303770ee9 /gitlab | |
| parent | 8b692e825d95cd338e305196d9ca4e6d87173a84 (diff) | |
| download | gitlab-2dd177bf83fdf62f0e9bdcb3bc41d5e4f5631504.tar.gz | |
refactor(client): let mypy know http_password is set
Diffstat (limited to 'gitlab')
| -rw-r--r-- | gitlab/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/client.py b/gitlab/client.py index 94fb66a..be8b48f 100644 --- a/gitlab/client.py +++ b/gitlab/client.py @@ -533,7 +533,7 @@ class Gitlab: self.headers.pop("PRIVATE-TOKEN", None) self.headers["JOB-TOKEN"] = self.job_token - if self.http_username: + if self.http_username and self.http_password: self._http_auth = requests.auth.HTTPBasicAuth( self.http_username, self.http_password ) |
