vega / altair

Declarative statistical visualization library for Python
https://altair-viz.github.io/
BSD 3-Clause "New" or "Revised" License
9.39k stars 795 forks source link

ci(typing): Add `pyarrow-stubs` to `dev` dependencies #3679

Closed dangotbanned closed 1 week ago

dangotbanned commented 1 week ago

Related https://github.com/vega/altair/commit/0bb4210b5aa5ff22c345946a8e73a432373529ff

https://github.com/zen-xu/pyarrow-stubs

In #3631 this stub package has been a huge help in understanding pyarrow.

Wanted to split out this dev dependency change for visibility.

Also, the 1 minor change to satisfy mypy on a test:

tests\utils\test_utils.py:143: error: Argument 1 to "schema" has incompatible type "list[object]"; expected "Iterable[Field[Any]] | Iterable[tuple[str, DataType]] | Mapping[str, DataType]"  [arg-type]