<div dir="ltr">Hi,<div><br></div><div>We've been trying to use VS Code Python type checkers to reduce errors, and leverage Intellisense for code completion.  We've been unable to get these to work with PyQGIS and PyQT classes, for instance:<br><br><img src="cid:ii_kx87vs7u1" alt="image.png" width="688" height="123" style="margin-right: 25px;"><br></div><div><br></div><div>I believe I've traced the problem to some customized importing that's used in places like the following:</div><div>c:\OSGeo4W\apps\qgis-ltr\python\qgis\__init__.py</div><div>c:\OSGeo4W\apps\qgis-ltr\python\qgis\core\__init__.py<br></div><div>c:\OSGeo4W\apps\qgis-ltr\python\qgis\PyQt\Qt.py<br></div><div><br></div><div>I then found that apparently similar techniques have caused the same types of problems when using libraries like TensorFlow:<br><a href="https://stackoverflow.com/questions/65271399/vs-code-pylance-pylint-cannot-resolve-import">https://stackoverflow.com/questions/65271399/vs-code-pylance-pylint-cannot-resolve-import</a></div><div><a href="https://github.com/PyCQA/pylint/issues/2603#issuecomment-541622729">https://github.com/PyCQA/pylint/issues/2603#issuecomment-541622729</a><br></div><div><br></div><div>The convoluted ways suggested to deal with these problems aren't really that appealing.  Does anyone have any suggestions for cleaner ways to handle this?</div><div><br></div><div>Are there reasons why QGIS has to be implemented like this?  It's not clear from the "monkey patching" comments whether these were temporary workarounds or not.</div><div><br></div><div>Thanks,</div><div>Ari</div></div>