Skip to content

Commit d30d979

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6d6b3ea commit d30d979

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pytorch_lightning/trainer/connectors/data_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import os
1515
from dataclasses import dataclass
1616
from functools import partial
17-
from typing import Iterable, Optional, Union, List, Dict
17+
from typing import Dict, Iterable, List, Optional, Union
1818

1919
from torch.utils.data import DataLoader
2020

tests/trainer/test_dataloaders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,8 +1313,8 @@ def test_dataloaders_load_only_once_passed_loaders(tmpdir):
13131313

13141314

13151315
def test_dataloaders_reset_and_attach(tmpdir):
1316-
"""Test that repeated calls to Trainer.{fit,validate,test,predict} properly reset dataloaders before
1317-
attaching the new one."""
1316+
"""Test that repeated calls to Trainer.{fit,validate,test,predict} properly reset dataloaders before attaching
1317+
the new one."""
13181318
# the assertions compare the datasets and not dataloaders since we patch and replace the samplers
13191319
dataloader_0 = DataLoader(dataset=RandomDataset(32, 64))
13201320
dataloader_1 = DataLoader(dataset=RandomDataset(32, 64))

0 commit comments

Comments
 (0)