Skip to content

Commit c8c248f

Browse files
committed
pep8
1 parent 7dbeaca commit c8c248f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

pytorch_lightning/callbacks/model_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def _add_backward_monitor_support(self, trainer):
472472

473473
if deprecation_warning:
474474
warning_cache.warn(
475-
f"Relying on `self.log('val_loss', ...)` to set the ModelCheckpoint monitor is deprecated in v1.2"
475+
"Relying on `self.log('val_loss', ...)` to set the ModelCheckpoint monitor is deprecated in v1.2"
476476
" and will be removed in v1.4. Please, create your own `mc = ModelCheckpoint(monitor='your_monitor')`"
477477
" and use it as `Trainer(callbacks=[mc])`.", DeprecationWarning
478478
)

pytorch_lightning/trainer/connectors/data_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def attach_dataloaders(
9696
train_dataloader=None,
9797
val_dataloaders=None,
9898
test_dataloaders=None,
99-
predict_dataloaders=None
99+
predict_dataloaders=None,
100100
):
101101
# when dataloader is passed via fit, patch the train_dataloader
102102
# functions to overwrite with these implementations

tests/deprecated_api/test_remove_1-4.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ def test_v1_4_0_deprecated_checkpoint_on(tmpdir):
222222
warning_cache.clear()
223223

224224
class TestModel(BoringModel):
225+
225226
def training_step(self, batch, batch_idx):
226227
self.log("val_loss", -batch_idx)
227228
return super().training_step(batch, batch_idx)

0 commit comments

Comments
 (0)