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

initial opencv scraped stub #72

Merged
merged 1 commit into from
Aug 5, 2021
Merged

Conversation

bschnurr
Copy link
Member

@bschnurr bschnurr commented Jun 11, 2021

future PR's still need to fix

variable value assignments
add #incomplete to functions
add actual types

@metal3d
Copy link

metal3d commented Jul 2, 2021

I tried it:

mkdir -p Projects/cvtests
cd Projects/cvtests
pipenv install opencv-python
curl -sSL https://raw.githubusercontent.com/bschnurr/python-type-stubs/add-opencv/cv2/__init__.pyi -o $(pipenv run python -c 'import cv2, os; print(os.path.dirname(cv2.__file__))')/cv2.pyi

Then:

Opened it with neovim with coc-pyright installed. Everything worked for me (type, documentation, everything worked)

@bschnurr bschnurr merged commit 9a45b4d into microsoft:main Aug 5, 2021
@sisrfeng
Copy link

sisrfeng commented Jan 22, 2022

Hi, still not working after this?

image

modified from #72 (comment)

conda activate MY_env_
CV2_PATH=`python -c 'import cv2, os; print(os.path.dirname(cv2.__file__))'`
URL='https://raw.githubusercontent.com/bschnurr/python-type-stubs/add-opencv/cv2/__init__.pyi'
curl -sSL $URL -o ${CV2_PATH}/cv2.pyi

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

Successfully merging this pull request may close these issues.

4 participants