Skip to content

Commit

Permalink
ignores types on sqlalchemy 1.4 (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfix authored May 29, 2024
1 parent 6b5952d commit 829b558
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ pipeline = dlt.pipeline(
def _double_as_decimal_adapter(table: sa.Table) -> None:
"""Return double as double, not decimals, this is mysql thing"""
for column in table.columns.values():
if isinstance(column.type, sa.Double):
if isinstance(column.type, sa.Double): # type: ignore
column.type.asdecimal = False

sql_alchemy_source = sql_database(
Expand Down

0 comments on commit 829b558

Please sign in to comment.