Skip to content

[CodeStyle][F522] Remove unused arguments - #46743

Merged
luotao1 merged 4 commits into
PaddlePaddle:developfrom
caolonghao:F522/fix
Oct 24, 2022
Merged

luotao1 merged 4 commits into
PaddlePaddle:developfrom
caolonghao:F522/fix

Conversation

@caolonghao

@caolonghao caolonghao commented Oct 4, 2022 •

Copy link
Copy Markdown
Contributor

PR types

Others

PR changes

Others

Describe

Fix F522: remove unused arguments

Related Links

Flake8 tracking issue: #46039
配置文件更新: #47287
Fix: cattidea/paddle-flake8-project#54

@paddle-bot

paddle-bot Bot commented Oct 4, 2022

Copy link
Copy Markdown

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


def _is_dir(self, fs_path):
cmd = "test -d {}".format(fs_path, redirect_stderr=True)
cmd = "test -d {}".format(fs_path)

@SigureMo SigureMo Oct 4, 2022 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里我怀疑是想将 redirect_stderr=True 插入到下一行的 _run_cmd 里,结果误插入到了这个 format 这里 😂,具体怎么改工作日讨论下吧,这里就先别动啦~

当然目前这么改是没有任何问题的,不会对现有代码造成任何影响~

@gongweibao gongweibao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@luotao1
luotao1 merged commit cc753aa into PaddlePaddle:develop Oct 24, 2022
@luotao1

luotao1 commented Oct 24, 2022

Copy link
Copy Markdown
Collaborator

配置文件更新: TODO

可以更新下配置文件了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[F522] .format(...) unused named arguments

4 participants