Skip to content

Commit c9e5b4f

Browse files
chore: add type-hints to gitlab/client.py
Adding some initial type-hints to gitlab/client.py
1 parent f909cae commit c9e5b4f

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
return self._list.current_page
206206

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

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

0 commit comments

Comments
 (0)