-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[CodeStyle] remove all future import #46411
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
|
已 revert 该文件报错是因为其断言函数所使用的测试用例包含报错信息的位置,也就是依赖于测试的行号,移除 |
TODO
|
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.
LGTM
static-check 流水线报错,可以试下 |
因为是分布式 API,所以我这边运行不了,要不这个先 revert?这个应该是我移除了这个示例代码里的
这个我之后单独提 PR 做一下
这个可以先排除掉 |
可以的。后面验证后再单独提即可。
可以的。 |
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.
LGTM
PR types
Others
PR changes
Others
Describe
移除全部
from __future__ import xxx
结构,由于 Paddle 已经不支持 Python2.7 了,因此没有必要保留这些future 详细说明见:https://docs.python.org/3/library/__future__.html
Paddle 目前代码里使用的全部是 3.0 及更高版本的内置特性(
generator_stop
和annotations
未使用过),均无需从__future__
import