We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e296087 + 7c99712 commit 2243035Copy full SHA for 2243035
1 file changed
pre_commit_po_hooks/utils.py
@@ -53,7 +53,7 @@ def load_py(filenames: list[Path]) -> set[str]:
53
54
for node in content.body:
55
if isinstance(node, ast.ClassDef):
56
- errors.extend(enum_field.value.value for enum_field in node.body)
+ errors.extend(enum_field.value.args[0].value for enum_field in node.body)
57
58
if len(errors) != len(set(errors)):
59
raise Exception(f"Error messages are not unique.\n")
0 commit comments