Define generics from a different function
This commit is contained in:
1 parent
af5d9d804e
commit
fbd72179a1
5 files changed
+24
-19
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user