opencv-python icon indicating copy to clipboard operation
opencv-python copied to clipboard

Type hint better

Open HouLingLXH opened this issue 2 years ago • 2 comments

I expect type of parameters and returned value will be specific,

Now I modified the file in python_stubs to realized it, but it is a not good way.

How to do it better ?

Expected behaviour

image

Actual behaviour

image

Steps to reproduce

HouLingLXH avatar Apr 19 '22 01:04 HouLingLXH

OpenCV team is working on Python stubs with static types, but it's not there yet. I cannot give you any ETA for the feature, please follow release notes.

asmorkalov avatar Apr 21 '22 05:04 asmorkalov

https://github.com/opencv/opencv/pull/20370

asmorkalov avatar Apr 29 '22 05:04 asmorkalov

@asmorkalov we can close this issue since mentioned PR is merged

VadimLevin avatar Jun 22 '23 11:06 VadimLevin

Sure

asmorkalov avatar Jun 22 '23 12:06 asmorkalov