Skip to content

Conversation

caolonghao
Copy link
Contributor

@caolonghao caolonghao commented Oct 4, 2022

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
Copy link

paddle-bot bot commented Oct 4, 2022

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

@@ -615,7 +615,7 @@ def is_dir(self, fs_path):
return self._is_dir(fs_path)

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

@SigureMo SigureMo Oct 4, 2022

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 这里 😂,具体怎么改工作日讨论下吧,这里就先别动啦~

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

Copy link
Contributor

@gongweibao gongweibao left a comment

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
Copy link
Contributor

luotao1 commented Oct 24, 2022

配置文件更新: 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