From 2b5d325fa2725e802ffb6aebff411f297a17f4ef Mon Sep 17 00:00:00 2001 From: Tony Cao <57024921+caolonghao@users.noreply.github.com> Date: Tue, 11 Oct 2022 11:37:53 +0800 Subject: [PATCH] Fix F524: add escape symbol to curly braces (#46745) --- python/paddle/distributed/auto_parallel/tuner/recorder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/distributed/auto_parallel/tuner/recorder.py b/python/paddle/distributed/auto_parallel/tuner/recorder.py index de3c9cb842..4d088379d8 100644 --- a/python/paddle/distributed/auto_parallel/tuner/recorder.py +++ b/python/paddle/distributed/auto_parallel/tuner/recorder.py @@ -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 = {} -- GitLab