-
Notifications
You must be signed in to change notification settings - Fork 23.1k
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
Add None return type to init #132335
Add None return type to init #132335
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/132335
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit fcfc442 with merge base 043e41f (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ghstack-source-id: 9dd7fd69512f66f1d87e674d0989ace80b1d866c Pull Request resolved: #132335
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.
Why not.
This will regress unless we add lint though.
@albanD yeah, ideally we remove all the mypy ignores. I did this via
so if this regresses, it is ok. |
cc XilunWu H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 voznesenskym penguinwu EikanWang Guobing-Chen zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang LucasLLC MeetVadakkanchery mhorowitz [ghstack-poisoned]
ghstack-source-id: 8aa50782aa1bb0b413fdb5d54fd0bdf377647727 Pull Request resolved: #132335
cc XilunWu H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 voznesenskym penguinwu EikanWang Guobing-Chen zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang LucasLLC MeetVadakkanchery mhorowitz [ghstack-poisoned]
cc XilunWu H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 voznesenskym penguinwu EikanWang Guobing-Chen zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang LucasLLC MeetVadakkanchery mhorowitz [ghstack-poisoned]
@pytorchbot merge -f "ci appears to be stuck" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: Command
Details for Dev Infra teamRaised by workflow job |
cc XilunWu H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 voznesenskym penguinwu EikanWang Guobing-Chen zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang LucasLLC MeetVadakkanchery mhorowitz [ghstack-poisoned]
You can try this: ruff check --select=ANN204 --fix-only --fix --unsafe-fixes torch It will add return type for See also: https://docs.astral.sh/ruff/rules/missing-return-type-special-method |
Pull Request resolved: #132351 Approved by: https://github.com/jamesjwu ghstack dependencies: #132335
Pull Request resolved: #132352 Approved by: https://github.com/ezyang ghstack dependencies: #132335, #132351
Pull Request resolved: #132376 Approved by: https://github.com/jamesjwu ghstack dependencies: #132335, #132351, #132352
Stack from ghstack (oldest at bottom):
cc @XilunWu @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @LucasLLC @MeetVadakkanchery @mhorowitz