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
Fix type annotation errors in torch.distributed.* directory #47531
Conversation
Summary: This is part of a stack of PRs that fixes mypy typing errors in the torch.distributed.* directory. Test Plan: python test_type_hints.py -v TestTypeHints.test_run_mypy Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 2981ef2 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 19 times. |
@@ -97,6 +98,11 @@ PyObject* faulty_agent_init(PyObject* _unused, PyObject* noargs) { | |||
(const WorkerInfo& (ProcessGroupAgent::*)(const std::string&)const) & | |||
ProcessGroupAgent::getWorkerInfo, | |||
py::call_guard<py::gil_scoped_release>()) | |||
.def( |
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.
Have to import this function, otherwise mypy will report in class FaultyProcessGroupRpcBackendOptions, "get_worker_info" has different signature than its super class.
Summary: This is part of a stack of PRs that fixes mypy typing errors in the torch.distributed.* directory. Test Plan: python test_type_hints.py -v TestTypeHints.test_run_mypy Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: This is part of a stack of PRs that fixes mypy typing errors in the torch.distributed.* directory. Test Plan: python test_type_hints.py -v TestTypeHints.test_run_mypy Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: This is part of a stack of PRs that fixes mypy typing errors in the torch.distributed.* directory. Test Plan: python test_type_hints.py -v TestTypeHints.test_run_mypy Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D24952499](https://our.internmc.facebook.com/intern/diff/D24952499) [ghstack-poisoned]
Summary: This is part of a stack of PRs that fixes mypy typing errors in the torch.distributed.* directory. Test Plan: python test_type_hints.py -v TestTypeHints.test_run_mypy Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D24952499](https://our.internmc.facebook.com/intern/diff/D24952499) [ghstack-poisoned]
This pull request has been merged in 49eb82a. |
Stack from ghstack:
Summary:
This is part of a stack of PRs that fixes mypy typing errors in the torch.distributed.* directory.
Test Plan:
python test_type_hints.py -v TestTypeHints.test_run_mypy
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D24952499