Skip to content

Commit

Permalink
Update path type annotation for load_from_checkpoint (#15540)
Browse files Browse the repository at this point in the history
(cherry picked from commit 96c5744)
  • Loading branch information
awaelchli authored and Borda committed Nov 8, 2022
1 parent 4d42e03 commit ea136f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pytorch_lightning/core/saving.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ class ModelIO:
@classmethod
def load_from_checkpoint(
cls,
checkpoint_path: Union[str, IO],
checkpoint_path: Union[_PATH, IO],
map_location: _MAP_LOCATION_TYPE = None,
hparams_file: Optional[str] = None,
hparams_file: Optional[_PATH] = None,
strict: bool = True,
**kwargs: Any,
) -> Self: # type: ignore[valid-type]
Expand Down

0 comments on commit ea136f5

Please sign in to comment.