Skip to content
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

Closed
wants to merge 5 commits into from

Conversation

xuzhao9
Copy link
Contributor

@xuzhao9 xuzhao9 commented Nov 6, 2020

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

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]
@dr-ci
Copy link

dr-ci bot commented Nov 6, 2020

💊 CI failures summary and remediations

As 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.

See how this bot performed.

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(
Copy link
Contributor Author

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]
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 49eb82a.

@facebook-github-bot facebook-github-bot deleted the gh/xuzhao9/4/head branch November 20, 2020 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed Merged oncall: distributed Add this issue/PR to distributed oncall triage queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants