We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dab794 commit 0373cd9Copy full SHA for 0373cd9
torch/distributed/checkpoint/api.py
@@ -1,4 +1,3 @@
1
-# mypy: allow-untyped-defs
2
import traceback as tb
3
from typing import Any, Dict
4
@@ -32,7 +31,7 @@ def failures(self) -> Dict[int, WRAPPED_EXCEPTION]:
32
31
"""Return a dictionary mapping node ranks to their associated exceptions in case of failure."""
33
return self._failures
34
35
- def __str__(self):
+ def __str__(self) -> str:
36
str = f"CheckpointException ranks:{self._failures.keys()}\n"
37
for rank, exc_pair in self._failures.items():
38
exc, trace = exc_pair
0 commit comments