zen-xu commented on issue #32609: URL: https://github.com/apache/arrow/issues/32609#issuecomment-2335025542
Additionally, if pyarrow needs to maintain its own type annotations, I recommend using the **wrapper pattern**, as `.pyi` files are limited in that they cannot include documentation. For example, if there is a function `add` in `_lib.so`, we can define a function with the same name in `lib.py`, add type annotations and documentation to it, and have it call `_lib.add`. -- 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]
