Skip to content

Commit

Permalink
Undo changes to engines values type (for Sphinx)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman authored Oct 10, 2023
1 parent d16df18 commit 0036bde
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions kedro-datasets/kedro_datasets/pandas/sql_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ class SQLTableDataset(AbstractDataset[pd.DataFrame, pd.DataFrame]):

DEFAULT_LOAD_ARGS: dict[str, Any] = {}
DEFAULT_SAVE_ARGS: dict[str, Any] = {"index": False}

engines: dict[str, Engine] = {}
# using Any because of Sphinx but it should be
# sqlalchemy.engine.Engine or sqlalchemy.engine.base.Engine
engines: dict[str, Any] = {}

def __init__( # noqa: PLR0913
self,
Expand Down Expand Up @@ -377,7 +378,9 @@ class SQLQueryDataset(AbstractDataset[None, pd.DataFrame]):
date: "%Y-%m-%d %H:%M:%S.%f0 %z"
"""

engines: dict[str, Engine] = {}
# using Any because of Sphinx but it should be
# sqlalchemy.engine.Engine or sqlalchemy.engine.base.Engine
engines: dict[str, Any] = {}

def __init__( # noqa: PLR0913
self,
Expand Down

0 comments on commit 0036bde

Please sign in to comment.