luxonis / depthai-core

DepthAI C++ Library
MIT License
231 stars 126 forks source link

Fix depthai python stub files #1125

Closed lnotspotl closed 5 days ago

lnotspotl commented 2 weeks ago

There have been complaints about some of the depthai classes not having their types properly annotated. The issue was that some of the depthai submodules were not properly included in the "master" __init__.pyi file, resulting in language servers not knowing the type of certain types (e.g. depthai.nn_archive.v1.Config).

This PR aims to fix that. The relevant clickup task can be viewed here. CI/CD action for this PR is also available.

For your convenience, here's the command to install this commit's depthai python bindings:

pip3 install depthai==3.0.0a2.dev0+bd08fb2b7518c42cb0da8b8a8dc8cbc36491f491 --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/