Skip to content

Commit 2e0f92a

Browse files
committed
style: ruff-format collapse _DB2_AVAILABLE onto single line
1 parent aede85c commit 2e0f92a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎sqlmesh/core/engine_adapter/__init__.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@
2929
# class-level exp.DataType.build(dialect="db2") in db2.py raises
3030
# ValueError("Unknown dialect 'db2'") and crashes every non-db2 environment
3131
# (e.g. the dbt-1.6 test run which installs without the db2 extra).
32-
_DB2_AVAILABLE = (
33-
sys.version_info >= (3, 10)
34-
and importlib.util.find_spec("db2_sqlglot") is not None
35-
)
32+
_DB2_AVAILABLE = sys.version_info >= (3, 10) and importlib.util.find_spec("db2_sqlglot") is not None
3633
if _DB2_AVAILABLE:
3734
from sqlmesh.core.engine_adapter.db2 import Db2EngineAdapter
3835

0 commit comments

Comments
 (0)