diff --git a/pyproject.toml b/pyproject.toml index 41761c226c8b1..2326d45639537 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -109,7 +109,6 @@ ignore = [ "UP030", "C405", "B019", # Confirmation required - "C411", "C416", "F821", "PLC0414", diff --git a/python/paddle/base/backward.py b/python/paddle/base/backward.py index 59bf66ebde7b6..6d30823d4bf4a 100755 --- a/python/paddle/base/backward.py +++ b/python/paddle/base/backward.py @@ -760,7 +760,7 @@ def _op_can_be_removed_(op_desc, no_grad_set): ] = grad_op_id_to_fwd_op[op_desc.original_id()] to_insert.append((new_op_desc, idx)) - list([op_descs.insert(p[1], p[0]) for p in reversed(to_insert)]) + [op_descs.insert(p[1], p[0]) for p in reversed(to_insert)] return op_descs