Skip to content

Commit 6e25242

Browse files
committed
Update TsLibDataModule
1 parent 31e54e6 commit 6e25242

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytorch_forecasting/data/_tslib_data_module.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
Experimental data module for integrating `tslib` time series deep learning library.
33
"""
44

5-
from typing import Any, Optional, Union
5+
from collections.abc import Callable
6+
from typing import Any, Optional
67
import warnings
78

89
from lightning.pytorch import LightningDataModule
@@ -308,7 +309,7 @@ def __init__(
308309
batch_size: int = 32,
309310
num_workers: int = 0,
310311
train_val_test_split: tuple[float, float, float] = (0.7, 0.15, 0.15),
311-
collate_fn: callable | None = None,
312+
collate_fn: Callable | None = None,
312313
**kwargs,
313314
) -> None:
314315
super().__init__()

0 commit comments

Comments
 (0)