Skip to content

Commit

Permalink
misc.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Nov 22, 2023
1 parent 0f42748 commit 5e8bef2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion functionalpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from ._sequence import Seq, Group # noqa: F401
from ._sequence import Seq, Group # noqa: F401 # type: ignore
2 changes: 1 addition & 1 deletion functionalpy/benchmark/query_1/polars_q1.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def main(data: pl.LazyFrame) -> pl.DataFrame:
result = (
data.filter(pl.col("ship_date") <= dt.datetime(2000, 1, 1))
data.filter(pl.col("ship_date") <= dt.datetime(2000, 1, 1)) # type: ignore
.group_by(["returned", "line_status"])
.agg(
[
Expand Down
5 changes: 3 additions & 2 deletions functionalpy/benchmark/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ def benchmark_method(
)
parsed_data = data_ingest_result.output

result = run_query(
result = run_query( # type: ignore
lambda: query(data=parsed_data), # type: ignore
query_title=f"{method_title}: Computation",
)

return CombinedBenchmark(
ingest=data_ingest_result, query_result=result
ingest=data_ingest_result,
query_result=result, # type: ignore
)

0 comments on commit 5e8bef2

Please sign in to comment.