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

Commitb0d75d9

Browse files
authored
Merge pull request#1339 from JohnVillalovos/jlvillal/mypy_client_py
chore: add type-hints to gitlab/client.py
2 parentsadab83a +c9e5b4f commitb0d75d9

File tree

2 files changed

+141
-79
lines changed

2 files changed

+141
-79
lines changed

‎gitlab/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,15 @@ def current_page(self) -> int:
207207
returnself._list.current_page
208208

209209
@property
210-
defprev_page(self)->int:
210+
defprev_page(self)->Optional[int]:
211211
"""The previous page number.
212212
213213
If None, the current page is the first.
214214
"""
215215
returnself._list.prev_page
216216

217217
@property
218-
defnext_page(self)->int:
218+
defnext_page(self)->Optional[int]:
219219
"""The next page number.
220220
221221
If None, the current page is the last.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp