1
0
forked from VimPlug/jedi

Make a first test working with mixed objects.

This commit is contained in:
Dave Halter
2016-05-18 11:49:50 +02:00
parent ef314a5c38
commit d93d31feb8
3 changed files with 23 additions and 7 deletions

View File

@@ -15,6 +15,7 @@ from jedi.parser import load_grammar
from jedi.parser.fast import FastParser
from jedi.evaluate import helpers
from jedi.evaluate import iterable
from jedi.evaluate.compiled import mixed
def add_namespaces_to_parser(evaluator, namespaces, parser_module):
@@ -46,6 +47,7 @@ class LazyName(helpers.FakeName):
Here we are trying to link back to Python code, if possible. This means
we try to find the python module for a name (not the builtin).
"""
return mixed.create(self._evaluator, self._value)
obj = self._value
parser_path = []
if inspect.ismodule(obj):