dora-rs / dora

DORA (Dataflow-Oriented Robotic Application) is middleware designed to streamline and simplify the creation of AI-based robotic applications. It offers low latency, composable, and distributed dataflow capabilities. Applications are modeled as directed graphs, also referred to as pipelines.
https://dora-rs.ai
Apache License 2.0
1.35k stars 68 forks source link

Adding python IDE typing #493

Closed haixuanTao closed 2 months ago

haixuanTao commented 2 months ago

Adding Python IDE typing by parsing rust docstring into python stubs.

For now this seems to be the only working solution that I have found to have effective typing, reading from: https://github.com/PyO3/pyo3/issues/2454

I had to:

Future PR:

The documentation in the docstring might still have to be reworked a bit, but at least this should create a foundation on which we can build typing.

haixuanTao commented 2 months ago

https://github.com/dora-rs/dora/assets/22787340/261518e8-e23e-47c2-96c5-2ac9181535d9