Skip to content

Commit 00fa20a

Browse files
authored
Apply suggestions from code review
1 parent e721f23 commit 00fa20a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytorch_lightning/trainer/connectors/callback_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def _reorder_callbacks(callbacks: List[Callback]) -> List[Callback]:
247247
A new list in which the last elements are Checkpoint if there were any present in the
248248
input.
249249
"""
250-
checkpoints: List[Checkpoint] = [c for c in callbacks if isinstance(c, Checkpoint)]
250+
checkpoints: List[Callback] = [c for c in callbacks if isinstance(c, Checkpoint)]
251251
not_checkpoints = [c for c in callbacks if not isinstance(c, Checkpoint)]
252252
return not_checkpoints + checkpoints
253253

0 commit comments

Comments
 (0)