Alias typing
(stdlib) in cv2/__init__.pyi
and explicitely re-export cv2.typing
#24352
Closed
4 tasks done
Labels
System Information
OpenCV python version: 4.8.1.78
Operating System / Platform: Windows 10
Python version: 3.9.13
Detailed description
Aliasing
typing
(stdlib) incv2/__init__.pyi
works around python/mypy#16216 and fixes opencv/opencv-python#901And allow type checkers to see that the
typing
symbol incv2
at runtime is actuallycv2.typing
.It would look something like that:
Steps to reproduce
See opencv/opencv-python#901
and:
test with both pyright and mypy
Issue submission checklist
The text was updated successfully, but these errors were encountered: