From b198434694aa9dd5fabcae535e7ee356823f5eb6 Mon Sep 17 00:00:00 2001 From: Peter Law Date: Sat, 7 Mar 2020 20:29:14 +0000 Subject: [PATCH] Remove resolved TODO The common logic this refers to has now been extracted (see 95cec459) and the remaining checks are specific to tuple handling. --- jedi/inference/gradual/annotation.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/jedi/inference/gradual/annotation.py b/jedi/inference/gradual/annotation.py index 552325db..bb77473c 100644 --- a/jedi/inference/gradual/annotation.py +++ b/jedi/inference/gradual/annotation.py @@ -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):