Skip to content

Commit

Permalink
[CodeStyle][task 23] enable Ruff PLR0402 rule in python/paddle/base (P…
Browse files Browse the repository at this point in the history
  • Loading branch information
zade23 authored and jiahy0825 committed Oct 16, 2023
1 parent 354328a commit 9ebc9c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ ignore = [
"UP030",
"C405",
"C417",
"PLR0402",
"B004",
"B009",
"B016",
Expand Down
5 changes: 2 additions & 3 deletions python/paddle/base/dygraph/tensor_patch_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 9ebc9c6

Please sign in to comment.