We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SIM
1 parent f27557e commit ab7a5e8Copy full SHA for ab7a5e8
pyproject.toml
@@ -95,6 +95,7 @@ select = [
95
"UP", # pyupgrade
96
"ICN", # flake8-import-conventions
97
"RET", # flake8-return
98
+ "SIM", # flake8-simplify
99
"RUF", # ruff
100
]
101
target_postgres/sinks.py
@@ -237,7 +237,7 @@ def upsert(
237
# Update
238
where_condition = join_condition
239
update_columns = {}
240
- for column_name in self.schema["properties"].keys():
+ for column_name in self.schema["properties"]:
241
from_table_column: sa.Column = from_table.columns[column_name]
242
to_table_column: sa.Column = to_table.columns[column_name]
243
update_columns[to_table_column] = from_table_column
0 commit comments