Skip to content

Commit eab2b06

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroid/nodes/scoped_nodes/scoped_nodes.py

Lines changed: 1 addition & 1 deletion
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( # pylint: disable=unnecessary-lambda-assignment # noqa
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)