Skip to content

Commit 5e9b432

Browse files
committed
PR feedback
1 parent 1bf06cf commit 5e9b432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlmesh/core/config/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,14 @@ def init(cursor: duckdb.DuckDBPyConnection) -> None:
350350

351351
if self.connector_config:
352352
option_names = list(self.connector_config)
353-
in_part = ",".join(["?" for _ in range(len(option_names))])
353+
in_part = ",".join("?" for _ in range(len(option_names)))
354354

355355
cursor.execute(
356356
f"SELECT name, value FROM duckdb_settings() WHERE name IN ({in_part})",
357357
option_names,
358358
)
359359

360-
existing_values = {r[0]: r[1] for r in cursor.fetchall()}
360+
existing_values = {field: setting for field, setting in cursor.fetchall()}
361361

362362
# only set connector_config items if the values differ from what is already set
363363
# trying to set options like 'temp_directory' even to the same value can throw errors like:

0 commit comments

Comments
 (0)