From da9d31218593ec1e761107aa3c1b6fc55895111b Mon Sep 17 00:00:00 2001 From: Peter Law Date: Thu, 12 Mar 2020 22:06:13 +0000 Subject: [PATCH] Remove redundant attribute check --- 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 bb77473c..11801398 100644 --- a/jedi/inference/gradual/annotation.py +++ b/jedi/inference/gradual/annotation.py @@ -491,9 +491,6 @@ def _infer_type_vars(annotation_value, value_set, is_class_value=False): # the elements from the set first, then handle them, even if we put # them back in a set afterwards. for element in value_set: - if not hasattr(element, 'is_instance'): - continue - if element.is_instance(): py_class = element.get_annotated_class_object() else: