Fix some more issues with imports and attribute warnings of static analysis.

This commit is contained in:
Dave Halter
2016-12-14 01:35:55 +01:00
parent 4074ca1e84
commit 6c4abcc84c
4 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ class SpecialMethodFilter(DictFilter):
# We can take the first index, because on builtin methods there's
# always only going to be one name. The same is true for the
# inferred values.
builtin_func = filter.get(self.string_name)[0].infer().pop()
builtin_func = next(iter(filter.get(self.string_name)[0].infer()))
return set([BuiltinMethod(self.parent_context, self._callable, builtin_func)])
def __init__(self, context, dct, builtin_context):