1
0
forked from VimPlug/jedi

Add a TODO.

This commit is contained in:
Dave Halter
2017-09-09 17:59:53 +02:00
parent 078b5802d2
commit 46f306aa11

View File

@@ -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.