Skip to content

Commit

Permalink
perf(datasets): lazily load datasets in init files (video)
Browse files Browse the repository at this point in the history
Signed-off-by: Deepyaman Datta <[email protected]>
  • Loading branch information
deepyaman committed Jul 29, 2023
1 parent c95be7b commit 51f2f46
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions kedro-datasets/kedro_datasets/video/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
"""Dataset implementation to load/save data from/to a video file."""
from typing import Any

__all__ = ["VideoDataSet"]
import lazy_loader as lazy

from .video_dataset import VideoDataSet
# https://github.com/pylint-dev/pylint/issues/4300#issuecomment-1043601901
VideoDataSet: Any

__getattr__, __dir__, __all__ = lazy.attach(
__name__, submod_attrs={"video_dataset": ["VideoDataSet"]}
)

0 comments on commit 51f2f46

Please sign in to comment.