Remove an unneeded list cast

This commit is contained in:
Dave Halter
2019-09-04 01:22:16 +02:00
parent 47d6ae3da1
commit 34f131e9b3

View File

@@ -220,7 +220,7 @@ def infer_return_types(function, arguments):
return NO_VALUES
context = function.get_default_param_context()
unknown_type_vars = list(find_unknown_type_vars(context, annotation))
unknown_type_vars = find_unknown_type_vars(context, annotation)
annotation_values = infer_annotation(context, annotation)
if not unknown_type_vars:
return annotation_values.execute_annotation()