From 85dcc446504d6a253596a1a3dbce5fcdbe510235 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 23 Apr 2018 16:27:18 +1000 Subject: [PATCH] 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. --- github/Issue.py | 2 +- github/PullRequest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/github/Issue.py b/github/Issue.py index 5cd476c8..434b3f4c 100644 --- a/github/Issue.py +++ b/github/Issue.py @@ -441,7 +441,7 @@ class Issue(github.GithubObject.CompletableGithubObject): def set_labels(self, *labels): """ :calls: `PUT /repos/:owner/:repo/issues/:number/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 diff --git a/github/PullRequest.py b/github/PullRequest.py index 46507faa..b2aff687 100644 --- a/github/PullRequest.py +++ b/github/PullRequest.py @@ -717,7 +717,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject): def set_labels(self, *labels): """ :calls: `PUT /repos/:owner/:repo/issues/:number/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