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

Commitc9e5b4f

Browse files
chore: add type-hints to gitlab/client.py
Adding some initial type-hints to gitlab/client.py
1 parentf909cae commitc9e5b4f

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
@@ -205,15 +205,15 @@ def current_page(self) -> int:
205205
returnself._list.current_page
206206

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp