-
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
[Typing][A-13] Add type annotations for paddle/tensor/to_string.py
#65042
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
edgeitems (int, optional): Number of elements in summary at the beginning and ending of each dimension, default 3. | ||
sci_mode (bool, optional): Format the floating number with scientific notation or not, default False. | ||
linewidth (int, optional): Number of characters each line, default 80. | ||
precision (int|None, optional): Number of digits of the floating number, default 8. |
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.
话说这里现有的加空格比较好还是不加?(int|None
或者 int | None
,个人倾向后者)
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.
其实吧 我觉得前面更好 ~ docstring 里面紧凑一点 ~
@sunzhongkai588 看你的了!😆
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.
我觉得前面更好 ~ docstring 里面紧凑一点 ~
+1!
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.
话说这里现有的加空格比较好还是不加?(
int|None
或者int | None
,个人倾向后者)
+1,这样还可以跟格式化对其
paddle/tensor/to_string.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.
PR Category
User Experience
PR Types
Improvements
Description
类型标注:
Related links
@SigureMo @megemini