Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add and fix some type-hints in gitlab/client.py#1343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nejch merged 1 commit intopython-gitlab:masterfromJohnVillalovos:jlvillal/mypy_testing_things
Feb 28, 2021
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletionsgitlab/client.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -623,7 +623,7 @@ def http_list(
query_data: Optional[Dict[str, Any]] = None,
as_list=None,
**kwargs,
):
) -> Union["GitlabList", List[Dict[str, Any]]]:
"""Make a GET request to the Gitlab server for list-oriented queries.

Args:
Expand DownExpand Up@@ -772,7 +772,9 @@ def http_delete(self, path: str, **kwargs) -> requests.Response:
return self.http_request("delete", path, **kwargs)

@gitlab.exceptions.on_http_error(gitlab.exceptions.GitlabSearchError)
def search(self, scope: str, search: str, **kwargs) -> requests.Response:
def search(
self, scope: str, search: str, **kwargs
) -> Union["GitlabList", List[Dict[str, Any]]]:
"""Search GitLab resources matching the provided string.'

Args:
Expand DownExpand Up@@ -896,10 +898,10 @@ def __len__(self) -> int:
return 0
return int(self._total)

def __next__(self):
def __next__(self) -> Dict[str, Any]:
return self.next()

def next(self) ->"Gitlab":
def next(self) ->Dict[str, Any]:
try:
item = self._data[self._current]
self._current += 1
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp