mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-06-13 11:22:07 +00:00
'Refactored by Sourcery'
This commit is contained in:
parent
72df282684
commit
e0032900a6
5 changed files with 24 additions and 26 deletions
|
@ -128,10 +128,10 @@ class User(_BaseUser):
|
|||
for key, value in keys.items():
|
||||
if '_at' in key and value is not None:
|
||||
setattr(self, key, dt_formatter(value))
|
||||
continue
|
||||
else:
|
||||
setattr(self, key, value)
|
||||
continue
|
||||
|
||||
continue
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f'<{self.__class__.__name__} login: {self.login!r}, id: {self.id}, created_at: {self.created_at}>'
|
||||
|
@ -336,11 +336,10 @@ class Issue(APIObject):
|
|||
|
||||
if key == 'closed_by':
|
||||
setattr(self, key, User(value, self._http))
|
||||
continue
|
||||
|
||||
else:
|
||||
setattr(self, key, value)
|
||||
continue
|
||||
|
||||
continue
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return (
|
||||
|
@ -511,11 +510,10 @@ class Organization(APIObject):
|
|||
continue
|
||||
if '_at' in key and value is not None:
|
||||
setattr(self, key, dt_formatter(value))
|
||||
continue
|
||||
|
||||
else:
|
||||
setattr(self, key, value)
|
||||
continue
|
||||
|
||||
continue
|
||||
|
||||
def __repr__(self):
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue