Skip to content

Commit 96b5d73

Browse files
committed
fixup! make constants have synthetic root as their parent
1 parent 3969f5d commit 96b5d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: astroid/nodes/scoped_nodes/scoped_nodes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ def infer_call_result(
15861586
if isinstance(metaclass, ClassDef):
15871587
try:
15881588
# Find the first non-None inferred base value
1589-
get_base = lambda arg: next(
1589+
get_base = lambda arg: next( # noqa: E731
15901590
b
15911591
for b in arg.infer(context=context.clone() if context else None)
15921592
if not (isinstance(b, node_classes.Const) and b.value is None)

0 commit comments

Comments
 (0)