-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Typing] Add type annotations for base decorators #64954
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
python/paddle/pir/__init__.pyi
Outdated
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.
这个文件好像也得加到 setup.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.
LGTM
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.
Great work!
PR Category
User Experience
PR Types
Improvements
Description
为基础装饰器添加类型提示,以便支持类型推导,比如
这里
static.data
原函数虽然标注了,但是公开的 API 是装饰后的,经过装饰后类型就没了,本 PR 修改了相关基础装饰器,确保公开 API 的类型签名是不变的@megemini
Tip
仅类型提示 PR,不影响运行时
PCard-66972