Skip to content

Commit

Permalink
set PartialFunction's parent to adhoc module instead of Unknown
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 authored and DanielNoord committed Sep 10, 2024
1 parent 8364693 commit e442776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroid/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def __init__(self, call, name=None, lineno=None, col_offset=None, parent=None):
name,
lineno=lineno,
col_offset=col_offset,
parent=node_classes.Unknown(),
parent=AstroidManager().adhoc_module,
end_col_offset=0,
end_lineno=0,
)
Expand Down

0 comments on commit e442776

Please sign in to comment.