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

bump black to 2023 style #54523

Merged
merged 1 commit into from
Jun 12, 2023
Merged

Conversation

SigureMo
Copy link
Member

@SigureMo SigureMo commented Jun 10, 2023

PR types

Others

PR changes

Others

Description

升级 black 到 23.3.0,即 2023 stable style(同一年的 style 是稳定的,只做 bug fix),详细 2023 release note 见 https://github.com/psf/black/releases/tag/23.1.0

虽然改动文件数比较多,但是改动行数很少,而且都是合理的:

  • 移除函数定义后、代码块后无用的空行,如:
      def foo():
    -                   
          ...
  • 移除 unpack 时无用的括号,如:
    - for (a, b) in c:
    + for a, b in c:

PCard-66962

@paddle-bot
Copy link

paddle-bot bot commented Jun 10, 2023

你的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.

@luotao1 luotao1 merged commit 44e0393 into PaddlePaddle:develop Jun 12, 2023
25 checks passed
@SigureMo SigureMo deleted the black/23-3-0 branch June 12, 2023 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants