forked from VimPlug/jedi
Add a TODO.
This commit is contained in:
@@ -114,6 +114,8 @@ class ParamName(AbstractTreeName):
|
|||||||
class AnonymousInstanceParamName(ParamName):
|
class AnonymousInstanceParamName(ParamName):
|
||||||
def infer(self):
|
def infer(self):
|
||||||
param_node = search_ancestor(self.tree_name, 'param')
|
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:
|
if param_node.position_index == 0:
|
||||||
# This is a speed optimization, to return the self param (because
|
# This is a speed optimization, to return the self param (because
|
||||||
# it's known). This only affects anonymous instances.
|
# it's known). This only affects anonymous instances.
|
||||||
|
|||||||
Reference in New Issue
Block a user