Fix a bug related to a wrong parametrization at one point

This commit is contained in:
Dave Halter
2018-01-30 01:17:09 +01:00
parent d2c0de3eb0
commit 24561759f6

View File

@@ -189,7 +189,7 @@ class AbstractInstanceContext(Context):
)
return bound_method.get_function_execution()
elif scope.type == 'classdef':
class_context = ClassContext(self.evaluator, scope, parent_context)
class_context = ClassContext(self.evaluator, parent_context, scope)
return class_context
elif scope.type == 'comp_for':
# Comprehensions currently don't have a special scope in Jedi.