Use the root implementation for get_root_context
This commit is contained in:
1 parent
87a0566637
commit
ba6cd1e2d4
1 file changed
+1
-5
@@ -27,11 +27,7 @@ class HelperValueMixin(object):
|
||||
value = self
|
||||
if value.parent_context is None:
|
||||
return value.as_context()
|
||||
|
||||
while True:
|
||||
if value.parent_context is None:
|
||||
return value
|
||||
value = value.parent_context
|
||||
return super(HelperValueMixin, self).get_root_context()
|
||||
|
||||
@classmethod
|
||||
@inference_state_as_method_param_cache()
|
||||
|
||||
Reference in new issue
Block a user