1
0
forked from VimPlug/jedi

Define generics from a different function

This commit is contained in:
Dave Halter
2018-09-28 18:16:09 +02:00
parent af5d9d804e
commit fbd72179a1
5 changed files with 24 additions and 19 deletions

View File

@@ -279,8 +279,7 @@ class TreeInstance(AbstractInstanceContext):
continue
all_annotations = pep0484.py__annotations__(execution.tree_node)
defined = pep0484.define_type_vars(
self.class_context,
defined = self.class_context.define_generics(
pep0484.infer_type_vars_for_execution(execution, all_annotations),
)
debug.dbg('Inferred instance context as %s', defined, color='BLUE')