1
0
forked from VimPlug/jedi

Fix issues with yield.

This commit is contained in:
Dave Halter
2017-09-01 18:38:19 +02:00
parent e2d53f51b0
commit c47f5ca68c
4 changed files with 34 additions and 2 deletions

View File

@@ -5,7 +5,10 @@ from jedi.parser_utils import clean_scope_docstring, get_doc_with_call_signature
class Context(object):
api_type = None
"""
Should be defined, otherwise the API returns empty types.
"""
"""
To be defined by subclasses.
"""
@@ -16,6 +19,12 @@ class Context(object):
self.evaluator = evaluator
self.parent_context = parent_context
@property
def api_type(self):
# By default just lower name of the class. Can and should be
# overwritten.
return self.__class__.__name__.lower()
def get_root_context(self):
context = self
while True: