From 1cad04cdbf387019403762d8e9af4403b183d1d9 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 2d12f5980..cf98e8422 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, )