GeezerVison is showing github.com — chore: adapt style for black v24 · python-gitlab/python-gitlab@4e68d32
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: gitlab/_backends/protocol.py +2-4Lines changed: 2 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 13 | 13 |
| 14 | 14 | class BackendResponse(Protocol): | 15 | 15 | @abc.abstractmethod | 16 | | - def __init__(self, response: requests.Response) -> None: | 17 | | - ... | | 16 | + def __init__(self, response: requests.Response) -> None: ... | 18 | 17 |
| 19 | 18 |
| 20 | 19 | class Backend(Protocol): | @@ -30,5 +29,4 @@ def http_request( | 30 | 29 | verify: Optional[Union[bool, str]], | 31 | 30 | stream: Optional[bool], | 32 | 31 | **kwargs: Any, | 33 | | - ) -> BackendResponse: | 34 | | - ... | | 32 | + ) -> BackendResponse: ... |
Collapse file Copy file name to clipboardExpand all lines: gitlab/client.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 40 | 40 |
| 41 | 41 |
| 42 | 42 | class Gitlab: | 43 | | - | 44 | 43 | """Represents a GitLab server connection. | 45 | 44 |
| 46 | 45 | Args: | |
Collapse file Copy file name to clipboardExpand all lines: gitlab/v4/objects/artifacts.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | GitLab API: | 3 | 3 | https://docs.gitlab.com/ee/api/job_artifacts.html | 4 | 4 | """ | | 5 | + | 5 | 6 | from typing import Any, Callable, Iterator, Optional, TYPE_CHECKING, Union | 6 | 7 |
| 7 | 8 | import requests | |
Collapse file Copy file name to clipboardExpand all lines: gitlab/v4/objects/audit_events.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | GitLab API: | 3 | 3 | https://docs.gitlab.com/ee/api/audit_events.html | 4 | 4 | """ | | 5 | + | 5 | 6 | from typing import Any, cast, Union | 6 | 7 |
| 7 | 8 | from gitlab.base import RESTManager, RESTObject | |
Collapse file Copy file name to clipboardExpand all lines: gitlab/v4/objects/deployments.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | GitLab API: | 3 | 3 | https://docs.gitlab.com/ee/api/deployments.html | 4 | 4 | """ | | 5 | + | 5 | 6 | from typing import Any, cast, Dict, Optional, TYPE_CHECKING, Union | 6 | 7 |
| 7 | 8 | from gitlab import cli | |
Collapse file Copy file name to clipboardExpand all lines: gitlab/v4/objects/features.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | GitLab API: | 3 | 3 | https://docs.gitlab.com/ee/api/features.html | 4 | 4 | """ | | 5 | + | 5 | 6 | from typing import Any, Optional, TYPE_CHECKING, Union | 6 | 7 |
| 7 | 8 | from gitlab import exceptions as exc | |
Collapse file Copy file name to clipboardExpand all lines: gitlab/v4/objects/merge_requests.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 | https://docs.gitlab.com/ee/api/merge_requests.html | 4 | 4 | https://docs.gitlab.com/ee/api/merge_request_approvals.html | 5 | 5 | """ | | 6 | + | 6 | 7 | from typing import Any, cast, Dict, Optional, TYPE_CHECKING, Union | 7 | 8 |
| 8 | 9 | import requests | |
Collapse file Copy file name to clipboardExpand all lines: gitlab/v4/objects/projects.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | GitLab API: | 3 | 3 | https://docs.gitlab.com/ee/api/projects.html | 4 | 4 | """ | | 5 | + | 5 | 6 | from typing import ( | 6 | 7 | Any, | 7 | 8 | Callable, | |
Collapse file Copy file name to clipboardExpand all lines: gitlab/v4/objects/repositories.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 |
| 4 | 4 | Currently this module only contains repository-related methods for projects. | 5 | 5 | """ | | 6 | + | 6 | 7 | from typing import Any, Callable, Dict, Iterator, List, Optional, TYPE_CHECKING, Union | 7 | 8 |
| 8 | 9 | import requests | |
Collapse file Copy file name to clipboardExpand all lines: gitlab/v4/objects/secure_files.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | GitLab API: | 3 | 3 | https://docs.gitlab.com/ee/api/secure_files.html | 4 | 4 | """ | | 5 | + | 5 | 6 | from typing import Any, Callable, cast, Iterator, Optional, TYPE_CHECKING, Union | 6 | 7 |
| 7 | 8 | import requests | |
|