Timo9Madrid7 commented on issue #24376:
URL: https://github.com/apache/arrow/issues/24376#issuecomment-4381563477

   Currently, native type checking for Pyarrow Flight is not supported in 
Pylance. To improve the development experience and enable autocompletion, I am 
using stubgen to generate stubs manually as follows:
   
   ```sh
   stubgen -m pyarrow.lib
   stubgen -m pyarrow.flight
   stubgen -m pyarrow._flight
   
   cp out/pyarrow/lib.pyi 
~/miniconda3/envs/datastream/lib/python3.10/site-packages/pyarrow/
   cp out/pyarrow/flight.pyi 
~/miniconda3/envs/datastream/lib/python3.10/site-packages/pyarrow/
   cp out/pyarrow/_flight.pyi 
~/miniconda3/envs/datastream/lib/python3.10/site-packages/pyarrow/
   ```
   
   I am looking forward to seeing native and better type-checking support 
integrated into pyarrow in the future to avoid this manual workaround.


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