Skip to content

Commit f83d1cd

Browse files
committed
put the "temporary_class" for the metaclass hack into adhoc module
it's a part of the campaign to get rid of non-module roots
1 parent 9fbecf2 commit f83d1cd

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
@@ -1624,7 +1624,7 @@ def infer_call_result(
16241624
col_offset=0,
16251625
end_lineno=0,
16261626
end_col_offset=0,
1627-
parent=self,
1627+
parent=AstroidManager().adhoc_module,
16281628
)
16291629
new_class.hide = True
16301630
new_class.postinit(

0 commit comments

Comments
 (0)