diff --git a/astroid/objects.py b/astroid/objects.py index 2d12f59805..cf98e84225 100644 --- a/astroid/objects.py +++ b/astroid/objects.py @@ -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, )