From 87852c1295ffd806e330fcac03c72c79d4d32136 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 3 Dec 2019 17:16:38 +0100 Subject: [PATCH] Remove probably dead code --- jedi/inference/analysis.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/jedi/inference/analysis.py b/jedi/inference/analysis.py index cdf46567..48e7017f 100644 --- a/jedi/inference/analysis.py +++ b/jedi/inference/analysis.py @@ -119,14 +119,7 @@ def add_attribute_error(name_context, lookup_value, name): # instead of an error, if that happens. typ = Error if lookup_value.is_instance() and not lookup_value.is_compiled(): - slot_names = lookup_value.get_function_slot_names(u'__getattr__') + \ - lookup_value.get_function_slot_names(u'__getattribute__') - for n in slot_names: - # TODO do we even get here? - if isinstance(name, CompiledInstanceName) and \ - n.parent_context.obj == object: - typ = Warning - break + # TODO maybe make a warning for __getattr__/__getattribute__ if _check_for_setattr(lookup_value): typ = Warning