mirror of
https://github.com/davidhalter/jedi.git
synced 2026-09-20 00:03:14 +08:00
Fix a bug related to a wrong parametrization at one point
This commit is contained in:
@@ -189,7 +189,7 @@ class AbstractInstanceContext(Context):
|
|||||||
)
|
)
|
||||||
return bound_method.get_function_execution()
|
return bound_method.get_function_execution()
|
||||||
elif scope.type == 'classdef':
|
elif scope.type == 'classdef':
|
||||||
class_context = ClassContext(self.evaluator, scope, parent_context)
|
class_context = ClassContext(self.evaluator, parent_context, scope)
|
||||||
return class_context
|
return class_context
|
||||||
elif scope.type == 'comp_for':
|
elif scope.type == 'comp_for':
|
||||||
# Comprehensions currently don't have a special scope in Jedi.
|
# Comprehensions currently don't have a special scope in Jedi.
|
||||||
|
|||||||
Reference in New Issue
Block a user