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
When running stubgen -p cv2, stubs should be generated for cv2.Error, cv2.cuda, cv2.detail, cv2.dnn, cv2.fisheye, cv2.flann, cv2.ipp, cv2.ml, cv2.ocl, cv2.ogl, cv2.parallel, cv2.samples, cv2.segmentation, and cv2.videoio_registry
Actual Behavior
They're not. The results seem to be what we get from import cv2; iport pkgutil; pkgutil.iter_modules(cv2.__path__)]
Your Environment
Mypy version used: 0.982 (compiled: yes)
Mypy command-line flags: stubgen -p cv2
Mypy configuration options from mypy.ini (and other config files): N/A
Python version used: 3.9.13
The text was updated successfully, but these errors were encountered:
Bug Report
When using stubgen to recursively generate stubs for a package, it misses dynamically generated modules.
To Reproduce
Example using cv2. Every module that doesn't come from a file is not picked-up:
Expected Behavior
When running
stubgen -p cv2
, stubs should be generated forcv2.Error
,cv2.cuda
,cv2.detail
,cv2.dnn
,cv2.fisheye
,cv2.flann
,cv2.ipp
,cv2.ml
,cv2.ocl
,cv2.ogl
,cv2.parallel
,cv2.samples
,cv2.segmentation
, andcv2.videoio_registry
Actual Behavior
They're not. The results seem to be what we get from
import cv2; iport pkgutil; pkgutil.iter_modules(cv2.__path__)]
Your Environment
stubgen -p cv2
mypy.ini
(and other config files): N/AThe text was updated successfully, but these errors were encountered: