You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a project that uses mypy type checking, I am seeing the following error when running mypy on a file that imports depthai:
/usr/local/lib/python3.8/dist-packages/depthai/__init__.pyi:7: error: invalid syntax [syntax]
import Calculation method used to obtain spatial locations
^
Found 1 error in 1 file (errors prevented further checking)
That does indeed look like a syntax error, as if that line was supposed to be a comment but somehow the "#" got removed. I'm not really sure how the depthai package is working for me with a syntax error like this, but it does.
This situation looks similar to this mypy issue, and the solution they came up with was to simply get the syntax error fixed rather than find a way to ignore it.
Mypy's follow-imports=skip was supposedly another way to avoid the syntax error, but I had a hard time getting that to work and would like to avoid using that option anyway.
This occurred on depthai version 2.13.0.0. I reverted to depthai version 2.11.0.0 for now since that version doesn't seem to have this issue. I'm not sure where the source code is that results in the generation of this __init__.pyi, but it would be very much appreciated if the comment causing the error (and line below it with a similar syntax error) was removed or changed.
The text was updated successfully, but these errors were encountered:
In a project that uses mypy type checking, I am seeing the following error when running mypy on a file that imports depthai:
That does indeed look like a syntax error, as if that line was supposed to be a comment but somehow the "#" got removed. I'm not really sure how the depthai package is working for me with a syntax error like this, but it does.
This situation looks similar to this mypy issue, and the solution they came up with was to simply get the syntax error fixed rather than find a way to ignore it.
Mypy's
follow-imports=skip
was supposedly another way to avoid the syntax error, but I had a hard time getting that to work and would like to avoid using that option anyway.This occurred on depthai version 2.13.0.0. I reverted to depthai version 2.11.0.0 for now since that version doesn't seem to have this issue. I'm not sure where the source code is that results in the generation of this
__init__.pyi
, but it would be very much appreciated if the comment causing the error (and line below it with a similar syntax error) was removed or changed.The text was updated successfully, but these errors were encountered: