-
Notifications
You must be signed in to change notification settings - Fork 838
[Docathon][CodeStyle Fix No.1] enable F541 rule #6274
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
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6274.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
ci_scripts/CAPItools/utils_helper.py
Outdated
@@ -99,7 +99,7 @@ def create_and_write_file_cn(self, save_dir, language): | |||
f.write(define_path_text) | |||
|
|||
if len(self.parameter_dict) != 0: | |||
parameters_text = f'参数\n' f':::::::::::::::::::::' | |||
parameters_text = '参数\n' ':::::::::::::::::::::' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同行不要使用隐式字符串拼接,可以使用 +
,或者直接拼接在一起
ci_scripts/CAPItools/utils_helper.py
Outdated
@@ -328,7 +330,9 @@ def create_and_write_file_cn(self, save_dir, language): | |||
f.write(fun_note_text) | |||
|
|||
if len(fun_infor['parameter']) != 0: | |||
parameters_text = "**参数**\n" "\'\'\'\'\'\'\'\'\'\'\'\n" | |||
parameters_text = ( | |||
"**参数**\n" + "\'\'\'\'\'\'\'\'\'\'\'\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"\'"
-> "'"
这代码看着好蠢,下同
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link #6242
@SigureMo