Commit a9d2637a authored by Stefan Behnel's avatar Stefan Behnel

f-string results are never None

parent f8dbb4ee
......@@ -2975,6 +2975,10 @@ class JoinedStrNode(ExprNode):
self.values = [v.analyse_types(env).coerce_to_pyobject(env) for v in self.values]
return self
def may_be_none(self):
# PyUnicode_Join() always returns a Unicode string or raises an exception
return False
def generate_evaluation_code(self, code):
code.mark_pos(self.pos)
num_items = len(self.values)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment