fix(aurora): pylint fixes
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 30s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 53s

This commit is contained in:
Seaswimmer 2024-08-22 16:04:37 -04:00
parent 43e82c9eb5
commit bc3ea67e1e
Signed by: cswimr
GPG key ID: 3813315477F26F82
3 changed files with 3 additions and 3 deletions

View file

@ -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":

View file

@ -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]:

View file

@ -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