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:
Steve Kowalik
2018-04-23 14:27:18 +08:00
committed by Wan Liuyang
parent e2e29918ea
commit 85dcc44650
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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