REPL completion is working again partially. There's some progress at least.

This commit is contained in:
Dave Halter
2016-06-29 08:49:20 +02:00
parent 52c42c3392
commit a3b263a599
7 changed files with 41 additions and 35 deletions

View File

@@ -7,8 +7,7 @@ import inspect
from jedi import common
from jedi.parser.fast import FastParser
from jedi.evaluate import compiled
from jedi.cache import underscore_memoization, memoize_method
from jedi.evaluate.cache import memoize_default
from jedi.cache import underscore_memoization
class MixedObject(object):
@@ -38,6 +37,15 @@ class MixedObject(object):
assert search_global is False
return [LazyMixedNamesDict(self._evaluator, self, is_instance=False)]
def api_type(self):
mappings = {
'expr_stmt': 'statement',
'classdef': 'class',
'funcdef': 'function',
'file_input': 'module',
}
return mappings[self._definition.type]
def __repr__(self):
return '<%s: %s>' % (type(self).__name__, repr(self.obj))