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

Commit6e5a6ec

Browse files
author
Gauvain Pocentek
committed
minor doc updates
1 parent1922cd5 commit6e5a6ec

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎gitlab/base.py

Lines changed: 11 additions & 0 deletions
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
defget_id(self):
605+
"""Returns the id of the resource."""
605606
ifself._id_attrisNone:
606607
returnNone
607608
returngetattr(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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject):
16481648
deftransfer_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)

[8]ページ先頭

©2009-2025 Movatter.jp