mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-17 22:09:37 +08:00
Remove the ImportWrapper and replace it with something simpler.
This commit is contained in:
@@ -362,7 +362,7 @@ def _name_to_types(evaluator, context, name):
|
||||
elif node.isinstance(tree.WithStmt):
|
||||
types = context.eval_node(node.node_from_name(name))
|
||||
elif isinstance(node, tree.Import):
|
||||
types = imports.ImportWrapper(context, name).follow()
|
||||
types = imports.infer_import(context, name)
|
||||
elif node.type in ('funcdef', 'classdef'):
|
||||
types = _apply_decorators(evaluator, context, node)
|
||||
elif node.type == 'global_stmt':
|
||||
|
||||
Reference in New Issue
Block a user