未验证 提交 2b5d325f 编写于 作者: T Tony Cao 提交者: GitHub

Fix F524: add escape symbol to curly braces (#46745)

上级 70dbc6c6
......@@ -70,7 +70,7 @@ class MetricRecords(object):
def __init__(self, direction="min"):
if direction not in {"min", "max"}:
raise ValueError(
"direction should be one of {min, max}, but got: {}.".format(
"direction should be one of {{min, max}}, but got: {}.".format(
direction))
self._direction = direction
self._records = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册