Skip to content

Commit

Permalink
lint: fix noqa typo
Browse files Browse the repository at this point in the history
  • Loading branch information
suvayu committed Jul 22, 2024
1 parent 94610de commit 89b2c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/esdl4tulipa/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def insert_into(con: duckdb.DuckDBPyConnection, tbl: str, records: tuple[TAssets, ...]):
"""Insert Tulipa records into DuckDB."""
df = pd.DataFrame(asdict(i) for i in records) # noqa: F84
df = pd.DataFrame(asdict(i) for i in records) # noqa: F841
# FIXME: use prepared statements
con.execute(f"CREATE TABLE {tbl} AS SELECT * FROM df")
return tbl

0 comments on commit 89b2c9e

Please sign in to comment.