WIP: Refactor Aurora (3.0.0) #29

Draft
cswimr wants to merge 347 commits from aurora-pydantic into main
3 changed files with 3 additions and 3 deletions
Showing only changes of commit bc3ea67e1e - Show all commits

View file

@ -39,7 +39,7 @@ class Change(AuroraBaseModel):
('duration', self.duration),
('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}>"
async def get_user(self) -> "PartialUser":

View file

@ -142,7 +142,7 @@ class Moderation(AuroraGuildModel):
('changes', self.changes),
('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}>"
async def resolve(self, resolved_by: int, reason: str) -> Tuple[bool, str]:

View file

@ -48,7 +48,7 @@ class Type(metaclass=AutoRegister(type_registry)):
('key', self.key),
('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}>"
@classmethod