-
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
[xdoctest][task 330] reformat example code with google style in python/paddle/base/data_feed_desc.py #57137
Merged
Merged
[xdoctest][task 330] reformat example code with google style in python/paddle/base/data_feed_desc.py #57137
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
53c219c
[Doctest]fix No.330, test=docs_preview
yoyoIcy afc17fb
Update python/paddle/base/data_feed_desc.py
yoyoIcy 4157dff
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
yoyoIcy 1a7b69d
[Doctest]fix No.330, test=docs_preview
yoyoIcy 34c2043
Merge branch 'doc330' of https://github.com/yoyoIcy/Paddle into doc330
yoyoIcy 90beb05
[Doctest]fix No.330, test=docs_preview
yoyoIcy d856970
[Doctest]fix No.330, test=docs_preview
yoyoIcy 1997cb4
`\\n` -> `\n`
SigureMo f760ac7
use raw string
SigureMo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
咦?为啥要
\\n
呀,\\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.
我这边试了下可以过呀,直接使用
convert-doctest doctest python/paddle/base/data_feed_desc.py
我这边直接改好啦
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 报的错和你一样
@megemini doctest 怎么把
\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.
convert-doctest 和 CI 提取 docstring 原理不同,一个是字符串裁剪,一个是运行时通过
__doc__
获取,所以\n
自然就是换行了,这里用r
raw string 即可两者都能跑(大概?看看 CI 结果)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.
正解!
\n
在 docstring 中是要用r
~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.
感谢大佬们!学到嘞~