From e44277638d1af9de57dc6bb1aa61fdb66ef39296 Mon Sep 17 00:00:00 2001 From: Artem Yurchenko Date: Mon, 9 Sep 2024 11:31:27 -0700 Subject: [PATCH] set PartialFunction's parent to adhoc module instead of Unknown it's a part of the campaign to get rid of non-module roots --- astroid/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, )