Skip to content

Commit 2f32149

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lightning/data/processing/data_processor.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from time import sleep, time
1616
from typing import Any, Dict, List, Optional, Tuple, TypeVar, Union
1717
from urllib import parse
18+
1819
import numpy as np
1920
from tqdm.auto import tqdm as _tqdm
2021

@@ -518,7 +519,9 @@ def is_path(element: Any) -> bool:
518519
# Other alternative would be too slow.
519520
# TODO: Try using dictionary for higher accurary.
520521
indexed_paths = {
521-
index: element if element.startswith("/teamspace") else str(Path(element).resolve()) for index, element in enumerate(flattened_item) if is_path(element)
522+
index: element if element.startswith("/teamspace") else str(Path(element).resolve())
523+
for index, element in enumerate(flattened_item)
524+
if is_path(element)
522525
}
523526

524527
if len(indexed_paths) == 0:

0 commit comments

Comments
 (0)