mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Remove some duplicate attributes introduced in #522
This commit is contained in:
@@ -157,22 +157,6 @@ class GitRelease(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._zipball_url)
|
||||
return self._zipball_url.value
|
||||
|
||||
@property
|
||||
def prerelease(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._prerelease)
|
||||
return self._prerelease.value
|
||||
|
||||
@property
|
||||
def draft(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._draft)
|
||||
return self._draft.value
|
||||
|
||||
def delete_release(self):
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
"DELETE",
|
||||
@@ -264,10 +248,6 @@ class GitRelease(github.GithubObject.CompletableGithubObject):
|
||||
self._upload_url = self._makeStringAttribute(attributes["upload_url"])
|
||||
if "html_url" in attributes:
|
||||
self._html_url = self._makeStringAttribute(attributes["html_url"])
|
||||
if "prerelease" in attributes:
|
||||
self._prerelease = self._makeBoolAttribute(attributes["prerelease"])
|
||||
if "draft" in attributes:
|
||||
self._draft = self._makeBoolAttribute(attributes["draft"])
|
||||
if "created_at" in attributes:
|
||||
self._created_at = self._makeDatetimeAttribute(attributes["created_at"])
|
||||
if "published_at" in attributes:
|
||||
|
||||
Reference in New Issue
Block a user