mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-23 21:57:05 +08:00
Revert "Use the root implementation for get_root_context"
Was not able to pass the tests with it.
This reverts commit ba6cd1e2d4.
This commit is contained in:
1 parent
3ae0bb9805
commit
4837822e32
1 file changed
+5
-1
@@ -27,7 +27,11 @@ class HelperValueMixin(object):
|
|||||||
value = self
|
value = self
|
||||||
if value.parent_context is None:
|
if value.parent_context is None:
|
||||||
return value.as_context()
|
return value.as_context()
|
||||||
return super(HelperValueMixin, self).get_root_context()
|
|
||||||
|
while True:
|
||||||
|
if value.parent_context is None:
|
||||||
|
return value
|
||||||
|
value = value.parent_context
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@inference_state_as_method_param_cache()
|
@inference_state_as_method_param_cache()
|
||||||
|
|||||||
Reference in new issue
Block a user