rok commented on PR #55264: URL: https://github.com/apache/arrow/pull/55264#issuecomment-6466766125
> Oh, I was too fast here. Unfortunately `def __getattr__(name: str) -> Any: ...` in `python/pyarrow-stubs/pyarrow/__init__.pyi` makes anything in form of `pa.*` be `Any` making lots of correct ignores (in `with pytest.raises ...` blocks) falsely reported as unused. > > Would it make sense to remove `# type: ignores` from the pyarrow tests for now and add type checking of the tests (with the ignores) after the stubs are in? Let's rather remove `def __getattr__(name: str) -> Any: ...` at least for development work? Otherwise we'll just need to add ignores again. -- 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]
