summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2020-03-21 11:44:05 -0400
committerGitHub <noreply@github.com>2020-03-21 11:44:05 -0400
commit82deb7dbe261c4b42a9c45a5b85a2c767f3a8218 (patch)
tree2e654ea6f2582ca6532e2d1c029a19a9cf031e21
parent4ffaf1dc0365690df810c99573f5737f635240e0 (diff)
parentb066b41314f55fbdc4ee6868d1e0aba1e5620a48 (diff)
downloadgitlab-82deb7dbe261c4b42a9c45a5b85a2c767f3a8218.tar.gz
Merge pull request #1049 from donhui/typo-fix
* docs: fix comment of prev_page()
-rw-r--r--gitlab/__init__.py4
-rw-r--r--gitlab/base.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index 44a249d..a12ffb9 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -800,9 +800,9 @@ class GitlabList(object):
@property
def prev_page(self):
- """The next page number.
+ """The previous page number.
- If None, the current page is the last.
+ If None, the current page is the first.
"""
return int(self._prev_page) if self._prev_page else None
diff --git a/gitlab/base.py b/gitlab/base.py
index a791db2..bc27237 100644
--- a/gitlab/base.py
+++ b/gitlab/base.py
@@ -194,9 +194,9 @@ class RESTObjectList(object):
@property
def prev_page(self):
- """The next page number.
+ """The previous page number.
- If None, the current page is the last.
+ If None, the current page is the first.
"""
return self._list.prev_page