mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
More precise typing for MainClass.get_user() (#1575)
Use typing.overload for MainClass.get_user() since it can return two disparate types. Correct the docstring for it, as well as locking down Sphinx to <3 due to built docs issue and drive-by link correction. Fixes #1550
This commit is contained in:
@@ -2924,7 +2924,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_releases(self):
|
||||
"""
|
||||
:calls: `GET /repos/:owner/:repo/releases <https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository`_
|
||||
:calls: `GET /repos/:owner/:repo/releases <https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.GitRelease.GitRelease`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
|
||||
Reference in New Issue
Block a user