Skip to content

Commit 8b2b953

Browse files
authored
[CodeStyle] Fix regression of Ruff in sot (#60483)
1 parent bd29981 commit 8b2b953

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/paddle/jit/sot/opcode_translator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from .skip_files import setup_skip_files
1615
from .eval_frame_callback import eval_frame_callback # noqa: F401
16+
from .skip_files import setup_skip_files
1717

1818
setup_skip_files()

python/paddle/jit/sot/utils/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from .call_ast_utils import get_static_function, try_ast_func # noqa: F401
1516
from .envs import ( # noqa: F401
1617
ENV_CLEAN_CODE,
1718
ENV_COST_MODEL,
1819
ENV_MIN_GRAPH_SIZE,
1920
ENV_SHOW_TRACKERS,
2021
ENV_SOT_LOG_LEVEL,
21-
ENV_STRICT_MODE,
2222
ENV_SOT_WITH_CONTROL_FLOW,
23+
ENV_STRICT_MODE,
2324
cost_model_guard,
2425
min_graph_size_guard,
2526
strict_mode_guard,
@@ -51,8 +52,8 @@
5152
count_if,
5253
current_tmp_name_records,
5354
execute_time,
54-
flatten_extend,
5555
flatten,
56+
flatten_extend,
5657
get_unbound_method,
5758
hashable,
5859
in_paddle_module,
@@ -72,4 +73,3 @@
7273
no_eval_frame,
7374
tmp_name_guard,
7475
)
75-
from .call_ast_utils import get_static_function, try_ast_func

0 commit comments

Comments
 (0)