[CodeStyle][UP019] update deprecated type annotation in python/paddle/jit/api.py
#49506
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR types
Others
PR changes
Others
Describe
[CodeStyle][isort][Dy2St] sort imports for paddle.jit #48637 中使用 isort 时由于循环依赖原因无法直接 sort,目前相关文件都已经删除或移出 fluid(于 Move out sequential and replace save_dygraph and load_dygraph #48709、[Remove Fluid]move TranslatedLayer from fluid dir to jit dir #49065、Fluid clean #48841),因此现在可以 sort 了仍然有paddle.jit.translated_layer
->paddle.jit.dy2static
->paddle.jit.translated_layer
的循环依赖关系,这个 PR 先不修改这个了typing.Text
is deprecated, usestr
1)只有python/paddle/jit/api.py
有存量,因此本 PR一起改一下Related links
Footnotes
可参考 typing.Text doc,于 Python3
typing.Text
只是str
的一个 alias,已经弃用,将会在未来版本移除(虽然具体版本未定) ↩