Skip to content

Commit 0373cd9

Browse files
bobrenjc93pytorchmergebot
authored andcommitted
remove allow-untyped-defs from torch/distributed/checkpoint/api.py (pytorch#144653)
Pull Request resolved: pytorch#144653 Approved by: https://github.com/Skylion007
1 parent 1dab794 commit 0373cd9

File tree

1 file changed

+1
-2
lines changed
  • torch/distributed/checkpoint

1 file changed

+1
-2
lines changed

torch/distributed/checkpoint/api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# mypy: allow-untyped-defs
21
import traceback as tb
32
from typing import Any, Dict
43

@@ -32,7 +31,7 @@ def failures(self) -> Dict[int, WRAPPED_EXCEPTION]:
3231
"""Return a dictionary mapping node ranks to their associated exceptions in case of failure."""
3332
return self._failures
3433

35-
def __str__(self):
34+
def __str__(self) -> str:
3635
str = f"CheckpointException ranks:{self._failures.keys()}\n"
3736
for rank, exc_pair in self._failures.items():
3837
exc, trace = exc_pair

0 commit comments

Comments
 (0)