pycharm
开启了代码智能提示,opencv
模块正确导入了,代码可以正常运行,但是,会有
Cannot find reference 'imread' in '__init__.py | __init__.py'
的warning,而且没有代码提示,不能获取documentation,也不能查看源码,不能提示形参列表,排查了很久,不知道为何。
找到一个相关的问题:
python - Cannot find reference 'xxx' in init.py - Stack Overflow
不是很理解
PyCharm looks at the
__init__.py
file to traceback to the module where a function/variable resides. So without <