Skip to content

Commit 360bd71

Browse files
committed
Apply ananthsub's suggestions
1 parent bbe8dc4 commit 360bd71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/utilities/cloud_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_filesystem(path: Union[str, Path]) -> AbstractFileSystem:
4747
return LocalFileSystem()
4848

4949

50-
def atomic_save(checkpoint: Any, filepath: str) -> None:
50+
def atomic_save(checkpoint: Dict[str, Any], filepath: Union[str, Path]) -> None:
5151
"""Saves a checkpoint atomically, avoiding the creation of incomplete checkpoints.
5252
5353
Args:

0 commit comments

Comments
 (0)