Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CodeStyle][task 23] enable Ruff PLR0402 rule in python/paddle/base #57607

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,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