summaryrefslogtreecommitdiff
path: root/protocols.py
diff options
context:
space:
mode:
Diffstat (limited to 'protocols.py')
-rw-r--r--protocols.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols.py b/protocols.py
index e1e2fb4d..22163b58 100644
--- a/protocols.py
+++ b/protocols.py
@@ -128,6 +128,9 @@ def tl_infer_binary_op(self, operator, other, context):
node.elts = elts
yield node
elif isinstance(other, nodes.Const) and operator == '*':
+ if not isinstance(other.value, int):
+ yield YES
+ continue
node = self.__class__()
elts = [n for elt in self.elts for n in elt.infer(context)
if not n is YES] * other.value