WIP: Refactor Aurora (3.0.0) #29
3 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@ class Change(AuroraBaseModel):
|
||||||
('duration', self.duration),
|
('duration', self.duration),
|
||||||
('end_timestamp', self.end_timestamp),
|
('end_timestamp', self.end_timestamp),
|
||||||
]
|
]
|
||||||
joined = ' '.join('%s=%r' % t for t in attrs)
|
joined = ' '.join(f'{key}={value!r}' for key, value in attrs)
|
||||||
return f"<{self.__class__.__name__} {joined}>"
|
return f"<{self.__class__.__name__} {joined}>"
|
||||||
|
|
||||||
async def get_user(self) -> "PartialUser":
|
async def get_user(self) -> "PartialUser":
|
||||||
|
|
|
@ -142,7 +142,7 @@ class Moderation(AuroraGuildModel):
|
||||||
('changes', self.changes),
|
('changes', self.changes),
|
||||||
('metadata', self.metadata),
|
('metadata', self.metadata),
|
||||||
]
|
]
|
||||||
joined = ' '.join('%s=%r' % t for t in attrs)
|
joined = ' '.join(f'{key}={value!r}' for key, value in attrs)
|
||||||
return f"<{self.__class__.__name__} {joined}>"
|
return f"<{self.__class__.__name__} {joined}>"
|
||||||
|
|
||||||
async def resolve(self, resolved_by: int, reason: str) -> Tuple[bool, str]:
|
async def resolve(self, resolved_by: int, reason: str) -> Tuple[bool, str]:
|
||||||
|
|
|
@ -48,7 +48,7 @@ class Type(metaclass=AutoRegister(type_registry)):
|
||||||
('key', self.key),
|
('key', self.key),
|
||||||
('channel', self.channel),
|
('channel', self.channel),
|
||||||
]
|
]
|
||||||
joined = ' '.join('%s=%r' % t for t in attrs)
|
joined = ' '.join(f'{key}={value!r}' for key, value in attrs)
|
||||||
return f"<{self.__class__.__name__} {joined}>"
|
return f"<{self.__class__.__name__} {joined}>"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in a new issue