Skip to content
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

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

gouzil
Copy link
Member

@gouzil gouzil commented Jun 11, 2024

PR Category

User Experience

PR Types

Improvements

Description

类型标注:

  • paddle/tensor/to_string.py

Related links

@SigureMo @megemini

Copy link

paddle-bot bot commented Jun 11, 2024

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

@paddle-bot paddle-bot bot added the contributor External developers label Jun 11, 2024
@gouzil gouzil requested a review from SigureMo June 11, 2024 13:28
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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

话说这里现有的加空格比较好还是不加?(int|None 或者 int | None,个人倾向后者)

@megemini @sunzhongkai588

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其实吧 我觉得前面更好 ~ docstring 里面紧凑一点 ~

@sunzhongkai588 看你的了!😆

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得前面更好 ~ docstring 里面紧凑一点 ~

+1!

Copy link
Member

@zrr1999 zrr1999 Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

话说这里现有的加空格比较好还是不加?(int|None 或者 int | None,个人倾向后者)

@megemini @sunzhongkai588

+1,这样还可以跟格式化对其

@gouzil gouzil changed the title [Typing][task 13] Add type annotations for paddle/tensor/to_string.py [Typing][A-13] Add type annotations for paddle/tensor/to_string.py Jun 11, 2024
@SigureMo SigureMo changed the title [Typing][A-13] Add type annotations for paddle/tensor/to_string.py [Typing][A-13] Add type annotations for paddle/tensor/to_string.py Jun 12, 2024
Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMeow 🐾

@SigureMo SigureMo merged commit c2438a0 into PaddlePaddle:develop Jun 12, 2024
31 of 33 checks passed
@SigureMo SigureMo added the HappyOpenSource 快乐开源活动issue与PR label Jun 17, 2024
@gouzil gouzil deleted the typehint/fix_to_string branch July 20, 2024 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR PaddlePaddle Hackathon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants