From c8c3541a861218dacf4b2a4518beaf57a2b13d11 Mon Sep 17 00:00:00 2001 From: Deepyaman Datta Date: Sat, 22 Jul 2023 21:15:30 -0500 Subject: [PATCH] fix(datasets): fix no name in module in api/pandas Signed-off-by: Deepyaman Datta --- kedro-datasets/kedro_datasets/api/__init__.py | 5 +++++ .../kedro_datasets/pandas/__init__.py | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/kedro-datasets/kedro_datasets/api/__init__.py b/kedro-datasets/kedro_datasets/api/__init__.py index b8dcef6a8..d5e36b0ab 100644 --- a/kedro-datasets/kedro_datasets/api/__init__.py +++ b/kedro-datasets/kedro_datasets/api/__init__.py @@ -3,8 +3,13 @@ It uses the python requests library: https://requests.readthedocs.io/en/latest/ """ +from typing import Any + import lazy_loader as lazy +# https://github.com/pylint-dev/pylint/issues/4300#issuecomment-1043601901 +APIDataSet: Any + __getattr__, __dir__, __all__ = lazy.attach( __name__, submod_attrs={"api_dataset": ["APIDataSet"]} ) diff --git a/kedro-datasets/kedro_datasets/pandas/__init__.py b/kedro-datasets/kedro_datasets/pandas/__init__.py index ae63b076f..6f59421eb 100644 --- a/kedro-datasets/kedro_datasets/pandas/__init__.py +++ b/kedro-datasets/kedro_datasets/pandas/__init__.py @@ -1,7 +1,25 @@ """``AbstractDataSet`` implementations that produce pandas DataFrames.""" +from typing import Any + import lazy_loader as lazy +# https://github.com/pylint-dev/pylint/issues/4300#issuecomment-1043601901 +CSVDataSet: Any +DeltaTableDataSet: Any +ExcelDataSet: Any +FeatherDataSet: Any +GBQQueryDataSet: Any +GBQTableDataSet: Any +GenericDataSet: Any +HDFDataSet: Any +JSONDataSet: Any +ParquetDataSet: Any +SQLQueryDataSet: Any +SQLTableDataSet: Any +XMLDataSet: Any + + __getattr__, __dir__, __all__ = lazy.attach( __name__, submod_attrs={