style: apply ruff linting fixes across codebase

This commit is contained in:
imSp4rky
2026-04-08 22:09:19 -06:00
parent 725edd59e0
commit 50d2b127ec
19 changed files with 138 additions and 127 deletions
+1 -3
View File
@@ -86,9 +86,7 @@ class Attachment:
raise ValueError(f"Failed to download attachment from URL: {e}")
if path is not None and not isinstance(path, (str, Path)):
raise ValueError(
f"Invalid attachment path type: expected str or Path, got {type(path).__name__}."
)
raise ValueError(f"Invalid attachment path type: expected str or Path, got {type(path).__name__}.")
if path is not None:
path = Path(path)