Skip to content

Commit 6705928

Browse files
author
Mart Sõmermaa
committed
Fix comments.
1 parent 01ade72 commit 6705928

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

gitlab.py

+17-13
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ def Hook(self, id=None, **kwargs):
315315
316316
If id is None, returns a list of hooks.
317317
318-
If id is an integer, test the matching hook.
318+
If id is an integer, tests the matching hook.
319319
320-
If id is a dict, create a new object using attributes provided. The
320+
If id is a dict, creates a new object using attributes provided. The
321321
object is NOT saved on the server. Use the save() method on the object
322322
to write it on the server.
323323
"""
@@ -328,42 +328,46 @@ def Project(self, id=None, **kwargs):
328328
329329
If id is None, returns a list of projects.
330330
331-
If id is an integer, returns the matching project (or raise a
331+
If id is an integer, returns the matching project (or raises a
332332
GitlabGetError if not found)
333333
334-
If id is a dict, create a new object using attributes provided. The
334+
If id is a dict, creates a new object using attributes provided. The
335335
object is NOT saved on the server. Use the save() method on the object
336336
to write it on the server.
337337
"""
338338
return self._getListOrObject(Project, id, **kwargs)
339339

340340
def Group(self, id=None, **kwargs):
341-
"""Creates/gets/lists groups(s) known by the GitLab server.
341+
"""Creates/gets/lists group(s) known by the GitLab server.
342342
343-
If id is None, returns a list of projects.
343+
If id is None, returns a list of groups.
344344
345-
If id is an integer, returns the matching project (or raise a
345+
If id is an integer, returns the matching group (or raises a
346346
GitlabGetError if not found)
347347
348-
If id is a dict, create a new object using attributes provided. The
348+
If id is a dict, creates a new object using attributes provided. The
349349
object is NOT saved on the server. Use the save() method on the object
350350
to write it on the server.
351351
"""
352352
return self._getListOrObject(Group, id, **kwargs)
353353

354354
def Issue(self, id=None, **kwargs):
355-
"""Lists issues(s) known by the GitLab server."""
355+
"""Lists issues(s) known by the GitLab server.
356+
357+
Does not support creation or getting a single issue unlike other
358+
methods in this class yet.
359+
"""
356360
return self._getListOrObject(Issue, id, **kwargs)
357361

358362
def User(self, id=None, **kwargs):
359363
"""Creates/gets/lists users(s) known by the GitLab server.
360364
361-
If id is None, returns a list of projects.
365+
If id is None, returns a list of users.
362366
363-
If id is an integer, returns the matching project (or raise a
367+
If id is an integer, returns the matching user (or raises a
364368
GitlabGetError if not found)
365369
366-
If id is a dict, create a new object using attributes provided. The
370+
If id is a dict, creates a new object using attributes provided. The
367371
object is NOT saved on the server. Use the save() method on the object
368372
to write it on the server.
369373
"""
@@ -374,7 +378,7 @@ def Team(self, id=None, **kwargs):
374378
375379
If id is None, returns a list of teams.
376380
377-
If id is an integer, returns the matching project (or raise a
381+
If id is an integer, returns the matching team (or raises a
378382
GitlabGetError if not found)
379383
380384
If id is a dict, create a new object using attributes provided. The

0 commit comments

Comments
 (0)