chore: enforce more ruff rules (#31447)

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
Maxime Beauchemin
2024-12-18 17:41:34 -08:00
committed by GitHub
parent 9da65d6bfd
commit e51b95ffa8
375 changed files with 1821 additions and 1718 deletions

View File

@@ -71,7 +71,7 @@ class CommandInvalidError(CommandException):
self._exceptions.extend(exceptions)
def get_list_classnames(self) -> list[str]:
return list(sorted({ex.__class__.__name__ for ex in self._exceptions}))
return sorted({ex.__class__.__name__ for ex in self._exceptions})
def normalized_messages(self) -> dict[Any, Any]:
errors: dict[Any, Any] = {}