Remove the module path from the parser tree.

Some static analysis tests are still failing.
This commit is contained in:
Dave Halter committed 2017-03-27 18:13:32 +02:00
1 parent b60ec024fa
commit 8a35a04439
14 files changed
+102 -101

No files matched your search

+5 -1
View File
@@ -150,7 +150,11 @@ def py__getitem__(context, typ, node):
return context.eval_node(nodes[0])
from jedi.evaluate.representation import ModuleContext
typing = ModuleContext(context.evaluator, _get_typing_replacement_module())
typing = ModuleContext(
context.evaluator,
module_node=_get_typing_replacement_module(),
path=None
)
factories = typing.py__getattribute__("factory")
assert len(factories) == 1
factory = list(factories)[0]