Skip to content

Commit

Permalink
Cope with changes to AssignAttr constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Apr 16, 2023
1 parent b807a25 commit 2e2b359
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/checkers/unittest_stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ def infer_func(
inner_node: nodes.Name,
context: InferenceContext | None = None, # pylint: disable=unused-argument
) -> Iterator[nodes.AssignAttr]:
new_node = nodes.AssignAttr(attrname="alpha", parent=inner_node)
new_node = nodes.AssignAttr(
attrname="alpha",
parent=inner_node,
lineno=0,
col_offset=0,
end_lineno=0,
end_col_offset=0,
)
yield new_node

manager = astroid.MANAGER
Expand Down

0 comments on commit 2e2b359

Please sign in to comment.