diff options
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r-- | astroid/protocols.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py index d7a38f58..00b0736c 100644 --- a/astroid/protocols.py +++ b/astroid/protocols.py @@ -135,7 +135,8 @@ nodes.Const.infer_binary_op = const_infer_binary_op def _multiply_seq_by_int(self, opnode, other, context): node = self.__class__(parent=opnode) elts = [] - for elt in self.elts: + filtered_elts = (elt for elt in self.elts if elt is not util.Uninferable) + for elt in filtered_elts: infered = helpers.safe_infer(elt, context) if infered is None: infered = util.Uninferable |