-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Refactor torch/utils/data/datapipes/gen_pyi.py
with torchgen
#150626
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/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 torchgen
torch/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: 909f4b3 Pull Request resolved: pytorch#150626
ghstack-source-id: a6f87a2 Pull Request resolved: pytorch#150626
ghstack-source-id: a6f87a2 Pull Request resolved: pytorch#150626
ghstack-source-id: c26fdb4 Pull Request resolved: pytorch#150626
ghstack-source-id: da8ffa4 Pull Request resolved: pytorch#150626
except ImportError: | ||
import sys | ||
|
||
REPO_ROOT = _Path(__file__).absolute().parents[4] |
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.
Maybe a quick comment saying when this is expected to occur?
ghstack-source-id: da8ffa4 Pull Request resolved: pytorch#150626
ghstack-source-id: 4f83938 Pull Request resolved: pytorch#150626
ghstack-source-id: d469efd Pull Request resolved: pytorch#150626
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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):
lintrunner
on generated.pyi
stub files #150732.pyi
stub files #150731gen_pyi
are properly formatted #150730torch/utils/data/datapipes/gen_pyi.py
withtorchgen
#150626