Skip to content

fix: order_by for compile_sql now works as expected #66

fix: order_by for compile_sql now works as expected

fix: order_by for compile_sql now works as expected #66

Triggered via pull request October 1, 2024 14:34
Status Failure
Total duration 24s
Artifacts

code-quality.yaml

on: pull_request
code-quality
15s
code-quality
Fit to window
Zoom out
Zoom in

Annotations

4 errors
code-quality: tests/integration/test_sl_client.py#L108
Argument of type "list[str]" cannot be assigned to parameter "order_by" of type "List[OrderByDimension | OrderByMetric] | None" in function "query"   Type "Literal['metric_time']" is not assignable to type "OrderByDimension | OrderByMetric"     "Literal['metric_time']" is not assignable to "OrderByDimension"     "Literal['metric_time']" is not assignable to "OrderByMetric" (reportArgumentType)
code-quality: tests/integration/test_sl_client.py#L142
Argument of type "list[str]" cannot be assigned to parameter "order_by" of type "List[OrderByDimension | OrderByMetric] | None" in function "compile_sql"   Type "Literal['metric_time']" is not assignable to type "OrderByDimension | OrderByMetric"     "Literal['metric_time']" is not assignable to "OrderByDimension"     "Literal['metric_time']" is not assignable to "OrderByMetric" (reportArgumentType)
code-quality
2 errors
code-quality
Process completed with exit code 1.