Skip to content

Commit 293515c

Browse files
ahrzbclaude
andcommitted
style: ruff format __init__.py (unformatted since TASK-13 dense output)
The dense-output commit (f3e80cf) landed __init__.py without running ruff format, so the pre-commit lint job failed on every open PR's merge preview. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 14f28c8 commit 293515c

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

sql_transform/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,12 @@ def transform(self, table: pa.Table, /) -> pa.Table:
116116
the Rust engine instead."""
117117
if self._infer_fn is None:
118118
raise RuntimeError("Must call fit() before transform")
119-
out = run_batch(
120-
self._rewritten_sql, table, self._state_tables, self._udf_specs
121-
)
119+
out = run_batch(self._rewritten_sql, table, self._state_tables, self._udf_specs)
122120
if self._output == "dense":
123121
return _table_to_dense(out)
124122
return out
125123

126-
def infer(
127-
self, row: dict[str, Any] | BaseModel, /
128-
) -> BaseModel | np.ndarray:
124+
def infer(self, row: dict[str, Any] | BaseModel, /) -> BaseModel | np.ndarray:
129125
"""Single-row inference through the Rust InferFn against the frozen
130126
state. Accepts a dict or a Pydantic model; returns the typed output
131127
model instance (records mode) or a float64 (k,) row (dense mode)."""

0 commit comments

Comments
 (0)