diff --git a/pyproject.toml b/pyproject.toml index eca2770cb1b4d..54d2001862a29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,7 +111,6 @@ ignore = [ "UP030", "C405", "C417", - "PLR0402", "B004", "B009", "B016", diff --git a/python/paddle/base/dygraph/tensor_patch_methods.py b/python/paddle/base/dygraph/tensor_patch_methods.py index 4f1b138abaae4..506b8edfe88b1 100644 --- a/python/paddle/base/dygraph/tensor_patch_methods.py +++ b/python/paddle/base/dygraph/tensor_patch_methods.py @@ -19,14 +19,13 @@ import numpy as np import paddle -import paddle.profiler as profiler -import paddle.utils.deprecated as deprecated -from paddle import _C_ops +from paddle import _C_ops, profiler from paddle.base.data_feeder import ( _PADDLE_DTYPE_2_NUMPY_DTYPE, convert_uint16_to_float, ) from paddle.profiler.utils import in_profiler_mode +from paddle.utils import deprecated from .. import core, framework, unique_name from ..framework import (