From 46f306aa115e5ba2232c042b15ff0e90bea79ed9 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 9 Sep 2017 17:59:53 +0200 Subject: [PATCH] Add a TODO. --- jedi/evaluate/filters.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jedi/evaluate/filters.py b/jedi/evaluate/filters.py index 7e803b3f..7c5c8fff 100644 --- a/jedi/evaluate/filters.py +++ b/jedi/evaluate/filters.py @@ -114,6 +114,8 @@ class ParamName(AbstractTreeName): class AnonymousInstanceParamName(ParamName): def infer(self): param_node = search_ancestor(self.tree_name, 'param') + # TODO I think this should not belong here. It's not even really true, + # because classmethod and other descriptors can change it. if param_node.position_index == 0: # This is a speed optimization, to return the self param (because # it's known). This only affects anonymous instances.