Skip to content

Conversation

@SigureMo
Copy link
Member

@SigureMo SigureMo commented Jun 26, 2025

PR Category

User Experience

PR Types

Improvements

Description

准备引入 Ruff SIM1171,将连续多个 with 语句合并为一个,减少代码缩进层级,此为 part2

累死喵了,基本都是一个一个手动改的

Tracker

Footnotes

  1. https://docs.astral.sh/ruff/rules/multiple-with-statements/

@SigureMo SigureMo requested review from gouzil and zrr1999 as code owners June 26, 2025 16:10
@paddle-bot
Copy link

paddle-bot bot commented Jun 26, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@SigureMo SigureMo changed the title [CodeStyle][SIM117] Combine multiple with statements (part2) [CodeStyle][SIM117] Combine multiple with statements (part2) Jun 26, 2025
@SigureMo SigureMo merged commit b5e6f15 into PaddlePaddle:develop Jun 27, 2025
50 of 53 checks passed
@SigureMo SigureMo deleted the ruff/sim117-part2 branch June 27, 2025 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants