Closed as not planned
Description
What happened?
While evaluating Ibis at work, I found some unexpected mypy errors:
import ibis
import ibis.selectors as s
from ibis import deferred as d_
table = ibis.table({"col1": "int"})
# error: Argument 1 to "order_by" of "Table" has incompatible type "Value"; expected "str | Column | tuple[str | Column, bool] | Sequence[str] | Sequence[Column] | Sequence[tuple[str | Column, bool]] | None" [arg-type]
table.order_by(ibis.desc("col1"))
# error: Argument 1 to "mutate" of "Table" has incompatible type "Across"; expected "Sequence[Expr] | None" [arg-type]
table.mutate(s.across(["col1"], d_.mean()))
# error: Argument "col1_again" to "mutate" of "Table" has incompatible type "Deferred"; expected "Value" [arg-type]
table.mutate(col1_again=d_["col1"])
I'll keep adding to this issue in case I'd find more. Also, a big thank you for making Ibis a typed library! :)
What version of ibis are you using?
Ibis 6.1
Mypy 1.4.0
Python 3.11
What backend(s) are you using, if any?
No response
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Type
Projects
Status
done