Skip to content

Commit

Permalink
refactor: Skip attribute assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Nov 13, 2021
1 parent 2ea88c0 commit e9cc2cd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/griffe/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,12 @@ def handle_data(self, node, annotation: str | None = None): # noqa: WPS231
except (LastNodeError, AttributeError):
docstring = None

# TODO: handle assigns like x.y = z
# we need to resolve x.y and add z in its member
for name in names:
# TODO: handle assigns like x.y = z
# we need to resolve x.y and add z in its member
if "." in name:
continue

attribute = Attribute(
name=name,
value=value,
Expand Down

0 comments on commit e9cc2cd

Please sign in to comment.