mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Correct docstring for set_labels (#766)
Both Issue and PullRequest have a set_labels method whose docstring did not exactly describe the parameter, correct it.
This commit is contained in:
committed by
Wan Liuyang
parent
e2e29918ea
commit
85dcc44650
+1
-1
@@ -441,7 +441,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
def set_labels(self, *labels):
|
||||
"""
|
||||
:calls: `PUT /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_
|
||||
:param label: :class:`github.Label.Label`
|
||||
:param labels: list of :class:`github.Label.Label` or strings
|
||||
:rtype: None
|
||||
"""
|
||||
assert all(isinstance(element, (github.Label.Label, str, unicode)) for element in labels), labels
|
||||
|
||||
@@ -717,7 +717,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
def set_labels(self, *labels):
|
||||
"""
|
||||
:calls: `PUT /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_
|
||||
:param label: :class:`github.Label.Label`
|
||||
:param labels: list of :class:`github.Label.Label` or strings
|
||||
:rtype: None
|
||||
"""
|
||||
assert all(isinstance(element, (github.Label.Label, str, unicode)) for element in labels), labels
|
||||
|
||||
Reference in New Issue
Block a user