Skip to content

Commit 0b6f94f

Browse files
authored
WPS466 formatting (#3436)
1 parent d9a7991 commit 0b6f94f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

wemake_python_styleguide/visitors/ast/decorators.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def _is_allowed_decorator(self, node: ast.expr) -> bool:
6363
if isinstance(node, ast.Name):
6464
return True # Simple names are fine!
6565

66-
return all(
67-
isinstance(part, self.ALLOWED_DECORATOR_TYPES)
68-
for part in attributes.parts(node)
66+
return attributes.only_consists_of_parts(
67+
node, self.ALLOWED_DECORATOR_TYPES
6968
)

0 commit comments

Comments
 (0)