Make sure a self variable is only defined in a function not outside

This commit is contained in:
Dave Halter
2019-09-04 00:53:46 +02:00
parent b27f47683c
commit 06d2119f51
4 changed files with 24 additions and 9 deletions
-1
View File
@@ -331,7 +331,6 @@ class SimpleParamName(X):
values = super(SimpleParamName, self).infer()
if values:
return values
# TODO private access
from jedi.inference.dynamic_params import dynamic_param_lookup
param = self._get_param_node()
values = dynamic_param_lookup(self.function_value, param.position_index)