Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"lint": {
"rules": {
"exclude": [
"prefer-const"
"prefer-const",
"no-import-prefix"
]
}
}
Expand Down
7 changes: 5 additions & 2 deletions src/quak/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def arrow_table_from_ipc(data: bytes | memoryview) -> pa.lib.Table:
return feather.read_table(io.BytesIO(data))


def table_to_ipc(table: pa.lib.Table | pa.lib.RecordBatch | pa.lib.RecordBatchReader) -> memoryview:
def table_to_ipc(
table: pa.lib.Table | pa.lib.RecordBatch | pa.lib.RecordBatchReader,
) -> memoryview:
"""Convert Arrow tabular data to an Arrow IPC message."""
import io

Expand All @@ -83,7 +85,8 @@ def table_to_ipc(table: pa.lib.Table | pa.lib.RecordBatch | pa.lib.RecordBatchRe
table = pa.Table.from_batches([table], schema=table.schema)
elif not isinstance(table, pa.Table):
raise TypeError(
f"Expected a pyarrow Table, RecordBatch, or RecordBatchReader, got {type(table)!r}"
"Expected a pyarrow Table, RecordBatch, or RecordBatchReader,",
f"got {type(table)!r}",
)

sink = io.BytesIO()
Expand Down
5 changes: 1 addition & 4 deletions src/quak/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@

import importlib.metadata

try:
__version__ = importlib.metadata.version("quak")
except importlib.metadata.PackageNotFoundError: # pragma: no cover - local dev fallback
__version__ = "0+local"
__version__ = importlib.metadata.version("quak")
Loading