Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not generating correct stubs for cv2 module #302

Closed
listout opened this issue Feb 8, 2021 · 1 comment
Closed

Not generating correct stubs for cv2 module #302

listout opened this issue Feb 8, 2021 · 1 comment

Comments

@listout
Copy link

listout commented Feb 8, 2021

When using the command pyright.createtypestub to generate stub for cv2 module incomplete/wrong __init__.pyi file generated. It works perfectly fine for numpy and other modules.

Am I doing something wrong or is this a problem with the cv2 module. For now a temporary solution seems to manually generate the stubs with stubgen command.

The __init__.pyi that was generated:

"""
This type stub file was generated by pyright.
"""

"""
This type stub file was generated by pyright.
"""
@<Expression>
class :
   ...

@listout
Copy link
Author

listout commented Feb 8, 2021

This seems to be a pyright issue.

@listout listout closed this as completed Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant