tadeja commented on PR #55264: URL: https://github.com/apache/arrow/pull/55264#issuecomment-6692641255
I've added first only [More cases for test_table.py in commit 63bc6a1](https://github.com/apache/arrow/pull/55264/commits/63bc6a17dd784a08c646bfe1f7f8dddb37fcb871) to log mypy errors also on CI (mypy and pyright showed the same type of errors locally) : <details><summary>Expand for mypy errors</summary> <p> - Python https://github.com/apache/arrow/actions/runs/42268812019/job/128067703069?pr=55264#step:6:4730 - and docs job https://github.com/apache/arrow/actions/runs/42268812419/job/128067704531?pr=55264#step:6:4724 ```console + mypy pyarrow-stubs/tests/test_table.py:77: error: List item 0 has incompatible type "_ArrowDeviceArrayProvider"; expected "Iterable[Any] | SupportsArrowStream | SupportsArrowArray" [list-item] pyarrow-stubs/tests/test_table.py:80: error: Argument 2 to "append_column" of "_Tabular" has incompatible type "tuple[list[int], list[int]]"; expected "Array | ChunkedArray | list[list[Any]]" [arg-type] pyarrow-stubs/tests/test_table.py:115: error: List item 0 has incompatible type "_PyArrowArrayProvider"; expected "Iterable[Any]" [list-item] pyarrow-stubs/tests/test_table.py:125: error: Argument 1 to "from_arrays" of "Table" has incompatible type "ndarray[tuple[Any, ...], dtype[Any]]"; expected "Sequence[Array | ChunkedArray | Iterable[Any]]" [arg-type] pyarrow-stubs/tests/test_table.py:144: error: List item 0 has incompatible type "int"; expected "list[Any]" [list-item] pyarrow-stubs/tests/test_table.py:144: error: List item 1 has incompatible type "int"; expected "list[Any]" [list-item] pyarrow-stubs/tests/test_table.py:183: error: List item 0 has incompatible type "_PyArrowArrayProvider"; expected "Iterable[Any] | SupportsArrowStream | SupportsArrowArray" [list-item] pyarrow-stubs/tests/test_table.py:185: error: List item 0 has incompatible type "_ArrowDeviceArrayProvider"; expected "Iterable[Any] | SupportsArrowStream | SupportsArrowArray" [list-item] pyarrow-stubs/tests/test_table.py:206: error: Unused "type: ignore" comment [unused-ignore] pyarrow-stubs/tests/test_table.py:207: error: Unused "type: ignore" comment [unused-ignore] Found 10 errors in 1 file (checked 22 source files) ``` </p> </details> Next, I'm adding -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
