Skip to content

Commit

Permalink
Add typing in attr_attributes_transform
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Jul 20, 2021
1 parent 76eb97f commit 45cb978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroid/brain/brain_attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def is_decorated_with_attrs(node, decorator_names=ATTRS_NAMES):
return False


def attr_attributes_transform(node):
def attr_attributes_transform(node: ClassDef) -> None:
"""Given that the ClassNode has an attr decorator,
rewrite class attributes as instance attributes
"""
Expand Down

0 comments on commit 45cb978

Please sign in to comment.