PERF401: fix

This commit is contained in:
Jörg Thalheim
2025-08-20 19:56:18 +02:00
parent 136acc7901
commit c65bb0b1ce
9 changed files with 75 additions and 79 deletions

View File

@@ -62,7 +62,7 @@ def find_dataclasses_in_directory(
and isinstance(deco.func, ast.Name)
and deco.func.id == "dataclass"
):
dataclass_files.append((file_path, node.name))
dataclass_files.append((file_path, node.name)) # noqa: PERF401
except (SyntaxError, UnicodeDecodeError) as e:
print(f"Error parsing {file_path}: {e}")