Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 9, 2021
1 parent cd05fe9 commit 0fb8317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/connectors/data_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def attach_dataloaders(
def attach_datamodule(
self, model: "pl.LightningModule", datamodule: Optional["pl.LightningDataModule"] = None
) -> None:
datamodule = datamodule or getattr(model, 'datamodule', None)
datamodule = datamodule or getattr(model, "datamodule", None)

# If we have a datamodule, attach necessary hooks + dataloaders
if datamodule is None:
Expand Down

0 comments on commit 0fb8317

Please sign in to comment.