Skip to content

Commit b0d75d9

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

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

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy