Skip to content

Commit 4e68d32

Browse files
nejchJohnVillalovos
authored andcommitted
chore: adapt style for black v24
1 parent f59aee3 commit 4e68d32

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+54
-15
lines changed

gitlab/_backends/protocol.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313

1414
class BackendResponse(Protocol):
1515
@abc.abstractmethod
16-
def __init__(self, response: requests.Response) -> None:
17-
...
16+
def __init__(self, response: requests.Response) -> None: ...
1817

1918

2019
class Backend(Protocol):
@@ -30,5 +29,4 @@ def http_request(
3029
verify: Optional[Union[bool, str]],
3130
stream: Optional[bool],
3231
**kwargs: Any,
33-
) -> BackendResponse:
34-
...
32+
) -> BackendResponse: ...

gitlab/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141

4242
class Gitlab:
43-
4443
"""Represents a GitLab server connection.
4544
4645
Args:

gitlab/v4/objects/artifacts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
GitLab API:
33
https://docs.gitlab.com/ee/api/job_artifacts.html
44
"""
5+
56
from typing import Any, Callable, Iterator, Optional, TYPE_CHECKING, Union
67

78
import requests

gitlab/v4/objects/audit_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
GitLab API:
33
https://docs.gitlab.com/ee/api/audit_events.html
44
"""
5+
56
from typing import Any, cast, Union
67

78
from gitlab.base import RESTManager, RESTObject

gitlab/v4/objects/deployments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
GitLab API:
33
https://docs.gitlab.com/ee/api/deployments.html
44
"""
5+
56
from typing import Any, cast, Dict, Optional, TYPE_CHECKING, Union
67

78
from gitlab import cli

gitlab/v4/objects/features.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
GitLab API:
33
https://docs.gitlab.com/ee/api/features.html
44
"""
5+
56
from typing import Any, Optional, TYPE_CHECKING, Union
67

78
from gitlab import exceptions as exc

gitlab/v4/objects/merge_requests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
https://docs.gitlab.com/ee/api/merge_requests.html
44
https://docs.gitlab.com/ee/api/merge_request_approvals.html
55
"""
6+
67
from typing import Any, cast, Dict, Optional, TYPE_CHECKING, Union
78

89
import requests

gitlab/v4/objects/projects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
GitLab API:
33
https://docs.gitlab.com/ee/api/projects.html
44
"""
5+
56
from typing import (
67
Any,
78
Callable,

gitlab/v4/objects/repositories.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Currently this module only contains repository-related methods for projects.
55
"""
6+
67
from typing import Any, Callable, Dict, Iterator, List, Optional, TYPE_CHECKING, Union
78

89
import requests

gitlab/v4/objects/secure_files.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
GitLab API:
33
https://docs.gitlab.com/ee/api/secure_files.html
44
"""
5+
56
from typing import Any, Callable, cast, Iterator, Optional, TYPE_CHECKING, Union
67

78
import requests

0 commit comments

Comments
 (0)