Skip to content

Commit 6e5a6ec

Browse files
author
Gauvain Pocentek
committed
minor doc updates
1 parent 1922cd5 commit 6e5a6ec

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

gitlab/base.py

+11
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ def _update_attrs(self, new_attrs):
602602
self.__dict__['_attrs'].update(new_attrs)
603603

604604
def get_id(self):
605+
"""Returns the id of the resource."""
605606
if self._id_attr is None:
606607
return None
607608
return getattr(self, self._id_attr)
@@ -622,6 +623,16 @@ class RESTObjectList(object):
622623
_list: A GitlabList object
623624
"""
624625
def __init__(self, manager, obj_cls, _list):
626+
"""Creates an objects list from a GitlabList.
627+
628+
You should not create objects of this type, but use managers list()
629+
methods instead.
630+
631+
Args:
632+
manager: the RESTManager to attach to the objects
633+
obj_cls: the class of the created objects
634+
_list: the GitlabList holding the data
635+
"""
625636
self.manager = manager
626637
self._obj_cls = obj_cls
627638
self._list = _list

gitlab/v4/objects.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject):
16481648
def transfer_project(self, id, **kwargs):
16491649
"""Transfers a project to this group.
16501650
1651-
Attrs:
1651+
Args:
16521652
id (int): ID of the project to transfer.
16531653
"""
16541654
path = '/groups/%d/projects/%d' % (self.id, id)

0 commit comments

Comments
 (0)