Check calls to all only if it's a name and not an attribute

This commit is contained in:
Tomer Keren 2019-05-09 17:50:41 +03:00
parent ecd2de25a1
commit e37ff3042e
1 changed files with 1 additions and 1 deletions

View File

@ -964,7 +964,7 @@ warn_explicit(
"""
visit `ast.Call` nodes on Python3.5 and after
"""
if call.func.id == "all":
if isinstance(call.func, ast.Name) and call.func.id == "all":
return self.visit_all(call)
new_func, func_expl = self.visit(call.func)
arg_expls = []