Refactor torch/utils/data/datapipes/gen_pyi.py with torchgen#150626
Refactor torch/utils/data/datapipes/gen_pyi.py with torchgen#150626XuehaiPan wants to merge 29 commits intogh/XuehaiPan/262/basefrom
torch/utils/data/datapipes/gen_pyi.py with torchgen#150626Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/150626
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit c715b4f with merge base cb5f31a ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ghstack-source-id: 7778da7 Pull Request resolved: pytorch#150626
torch/utils/data/datapipes with torchgentorch/utils/data/datapipes/gen_pyi.py with torchgen
|
The |
ghstack-source-id: f92a3a2 Pull Request resolved: pytorch#150626
ghstack-source-id: 909f4b3 Pull Request resolved: pytorch#150626
ghstack-source-id: c26fdb4 Pull Request resolved: pytorch#150626
| except ImportError: | ||
| import sys | ||
|
|
||
| REPO_ROOT = _Path(__file__).absolute().parents[4] |
There was a problem hiding this comment.
Maybe a quick comment saying when this is expected to occur?
ghstack-source-id: 0b4fbf3 Pull Request resolved: pytorch#150626
| __all__: list[str] = [] # not intended to expose any symbols | ||
|
|
||
|
|
||
| def __dir__() -> list[str]: |
There was a problem hiding this comment.
How does this appease the public API test? I'm surprised that the test treats a module with no actually visible members any different than one with and empty '__all__' defined... I wonder if there's a test bug there...
There was a problem hiding this comment.
The public API test checks symbols in set(dir(mod)) - set(mod.__all__).
|
@pytorchbot merge |
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: linux-binary-manywheel / manywheel-py3_9-cuda12_6-test / test Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
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 |
Stack from ghstack (oldest at bottom):
lintrunneron generated.pyistub files #150732.pyistub files #150731gen_pyiare properly formatted #150730torch/utils/data/datapipes/gen_pyi.pywithtorchgen#150626