Skip to content

Commit c2cf6ef

Browse files
samestepfacebook-github-bot
authored andcommittedSep 18, 2020
Enable type check for torch.testing._internal.dist_utils.* (pytorch#44832)
Summary: Addresses a sub-task of pytorch#44752. Pull Request resolved: pytorch#44832 Reviewed By: malfet Differential Revision: D23744260 Pulled By: samestep fbshipit-source-id: 46aede57b4fa66a770d5df382b0aea2bd6772b9b
1 parent 7bd8a69 commit c2cf6ef

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed
 

‎mypy.ini

-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ ignore_errors = True
5656
[mypy-torch.testing._internal.te_utils.*]
5757
ignore_errors = True
5858

59-
[mypy-torch.testing._internal.dist_utils.*]
60-
ignore_errors = True
61-
6259
[mypy-torch.testing._internal.codegen.*]
6360
ignore_errors = True
6461

‎torch/testing/_internal/dist_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import torch.distributed as dist
88
import torch.distributed.rpc as rpc
9-
from torch.distributed.rpc import _rref_context_get_debug_info
9+
from torch.distributed.rpc import _rref_context_get_debug_info # type: ignore[attr-defined]
1010

1111

1212
if not dist.is_available():

0 commit comments

Comments
 (0)
Please sign in to comment.