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.
1 parent d9a7991 commit 0b6f94fCopy full SHA for 0b6f94f
1 file changed
wemake_python_styleguide/visitors/ast/decorators.py
@@ -63,7 +63,6 @@ def _is_allowed_decorator(self, node: ast.expr) -> bool:
63
if isinstance(node, ast.Name):
64
return True # Simple names are fine!
65
66
- return all(
67
- isinstance(part, self.ALLOWED_DECORATOR_TYPES)
68
- for part in attributes.parts(node)
+ return attributes.only_consists_of_parts(
+ node, self.ALLOWED_DECORATOR_TYPES
69
)
0 commit comments