Use even more stubs to get more complex completions for e.g. strings working
This commit is contained in:
1 parent
97f342fc4c
commit
94dfe7bf69
10 files changed
+48
-15
No files matched your search
@@ -118,7 +118,7 @@ def add_attribute_error(name_context, lookup_context, name):
|
||||
# Check for __getattr__/__getattribute__ existance and issue a warning
|
||||
# instead of an error, if that happens.
|
||||
typ = Error
|
||||
if lookup_context.is_instance():
|
||||
if lookup_context.is_instance() and not lookup_context.is_compiled():
|
||||
slot_names = lookup_context.get_function_slot_names(u'__getattr__') + \
|
||||
lookup_context.get_function_slot_names(u'__getattribute__')
|
||||
for n in slot_names:
|
||||
|
||||
Reference in new issue
Block a user