Skip to content

Commit

Permalink
update type
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Nov 19, 2021
1 parent f6b11ed commit 24a85ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytorch_lightning/lite/lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def setup(

def setup_dataloaders(
self, *dataloaders: DataLoader, replace_sampler: bool = True, move_to_device: bool = True
) -> Union[Iterable, List[Iterable]]:
) -> Union[_LiteDataLoader, List[_LiteDataLoader]]:
"""Setup one or multiple dataloaders for accelerated training. If you need different settings for each
dataloader, call this method individually for each one.
Expand All @@ -213,7 +213,7 @@ def setup_dataloaders(

def _setup_dataloader(
self, dataloader: DataLoader, replace_sampler: bool = True, move_to_device: bool = True
) -> Iterable:
) -> _LiteDataLoader:
"""Setup a single dataloader for accelerated training.
Args:
Expand Down

0 comments on commit 24a85ce

Please sign in to comment.