jorisvandenbossche commented on PR #51680:
URL: https://github.com/apache/arrow/pull/51680#issuecomment-5937006936

   Specifically for the example of dynamically create compute kernels: those 
are actually pure-python functions (generated in `compute.py`, not in 
`_compute.pyx`), and so I _assume_ it should be possible to update that 
generation code to directly include type annotations as well (e.g., we now also 
generate a `Signature` to add to the generated function.
   
   But in general, I was talking about the _cython_ files. As an example, see 
the second commit in https://github.com/apache/arrow/pull/51681, which adds 
some additional type annotations in the cython file (for things that the 
stubgen cannot infer from the cython type defs), and so are then included in 
the generated stub file.


-- 
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]

Reply via email to