Fix stub function inferrals
This commit is contained in:
1 parent
6f41530a03
commit
ec7b6b8d80
5 files changed
+65
-27
No files matched your search
@@ -203,9 +203,9 @@ def infer_return_types(function_execution_context):
|
||||
|
||||
type_var_dict = infer_type_vars_for_execution(function_execution_context, all_annotations)
|
||||
|
||||
return ContextSet(
|
||||
return ContextSet.from_sets(
|
||||
ann.define_generics(type_var_dict)
|
||||
if isinstance(ann, AbstractAnnotatedClass) else ann
|
||||
if isinstance(ann, (AbstractAnnotatedClass, TypeVar)) else ann
|
||||
for ann in annotation_contexts
|
||||
).execute_annotation()
|
||||
|
||||
|
||||
Reference in new issue
Block a user