Skip to content

Commit

Permalink
put the "temporary_class" for the metaclass hack into adhoc module
Browse files Browse the repository at this point in the history
it's a part of the campaign to get rid of non-module roots
  • Loading branch information
temyurchenko committed Sep 10, 2024
1 parent 0145a26 commit dfa52f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroid/nodes/scoped_nodes/scoped_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ def infer_call_result(
col_offset=0,
end_lineno=0,
end_col_offset=0,
parent=self,
parent=AstroidManager().adhoc_module,
)
new_class.hide = True
new_class.postinit(
Expand Down

0 comments on commit dfa52f1

Please sign in to comment.