Start adding tests for goto_assignments on stubs
This commit is contained in:
1 parent
31442ecb3b
commit
9f26c27b6d
5 files changed
+53
-6
No files matched your search
@@ -18,6 +18,13 @@ from jedi.evaluate.cache import evaluator_as_method_param_cache
|
||||
|
||||
|
||||
class HelperContextMixin(object):
|
||||
def get_root_context(self):
|
||||
context = self
|
||||
while True:
|
||||
if context.parent_context is None:
|
||||
return context
|
||||
context = context.parent_context
|
||||
|
||||
@classmethod
|
||||
@evaluator_as_method_param_cache()
|
||||
def create_cached(cls, *args, **kwargs):
|
||||
|
||||
Reference in new issue
Block a user