-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Use Generic TypeAlias (PEP 585) and Union Type (PEP 604) in .pyi
stub files
#129419
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/129419
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 67ea1e5 with merge base 065c386 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot merge -f "all tests passed, stuck at unrelated ci" |
The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command |
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 |
|
….pyi` stub files (#129419)" This reverts commit e40f50c. Reverted #129419 on behalf of https://github.com/huydhn due to Sorry for reverting your change but I need to revert to cleanly revert #129374, please do a rebase and reland this ([comment](#129375 (comment)))
@XuehaiPan your PR has been successfully reverted. |
@pytorchbot merge |
…ub files ghstack-source-id: 2b30591 Pull Request resolved: pytorch#129419
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: periodic / win-vs2019-cuda11.8-py3 / test (default, 3, 4, windows.g5.4xlarge.nvidia.gpu) Details for Dev Infra teamRaised by workflow job |
@pytorchbot merge -f "failed test unrelated" |
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 |
Stack from ghstack (oldest at bottom):
.pyi
stub files #129420.pyi
stub files #129419torchgen
#129376tools
#129375typing.List[T] -> list[T]
,typing.Dict[KT, VT] -> dict[KT, VT]
,typing.Type[T] -> type[T]
.Union[X, Y] -> X | Y
,Optional[X] -> X | None
,Optional[Union[X, Y]] -> X | Y | None
.Note that in
.pyi
stub files, we do not needfrom __future__ import annotations
. So this PR does not violate issue #117449:cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225 @chauhang @d4l3k @ezyang @malfet @xuzhao9 @gramster @Skylion007