Remove resolved TODO

The common logic this refers to has now been extracted (see 95cec459)
and the remaining checks are specific to tuple handling.
This commit is contained in:
Peter Law
2020-03-07 20:29:14 +00:00
parent d06efd0dd1
commit b198434694

View File

@@ -464,9 +464,6 @@ def _infer_type_vars(annotation_value, value_set, is_class_value=False):
# treat the incoming values as needing to match the annotation
# exactly, just as we would for non-tuple annotations.
# TODO: this logic is pretty similar to the general logic below, can
# we combine them?
for element in value_set:
py_class = element.get_annotated_class_object()
if not isinstance(py_class, GenericClass):