Skip to content

Commit 28047bf

Browse files
committed
style: ruff-format db2.py — collapse ternary in table_exists() TYPE mapping
1 parent d1d2afc commit 28047bf

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • sqlmesh/core/engine_adapter

‎sqlmesh/core/engine_adapter/db2.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,7 @@ def table_exists(self, table_name: TableName) -> bool:
487487
if result is not None:
488488
actual_schema, actual_table, actual_type = result
489489
object_type = (
490-
DataObjectType.VIEW
491-
if str(actual_type).strip() == "V"
492-
else DataObjectType.TABLE
490+
DataObjectType.VIEW if str(actual_type).strip() == "V" else DataObjectType.TABLE
493491
)
494492
self._data_object_cache[data_object_cache_key] = DataObject(
495493
name=actual_table,

0 commit comments

Comments
 (0)