Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.7.2
-
None
-
adf240747 (dev), c443b9f9c (6.7), cc6d4d37b (tqtc/lts-6.5), d6fc39116 (tqtc/lts-6.2)
Description
From https://github.com/microsoft/pylance-release/issues/1008#issuecomment-876036121
The Pyside6 __init__.py file defines __all__ in a dynamic manner, so static type checkers will not work with it. If this library is important to you, please work with the library maintainer to define __all__ in a way that conforms to this guidance, which we established by working with other Python type checkers and language servers. __all__ = list("Qt" + body for body in "Core;Gui;Widgets;...".split(";")) should be changed to __all__ = ["QtCore", "QtGui", "QtWidgets", ...]
Attachments
For Gerrit Dashboard: PYSIDE-2836 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
581345,2 | PySide6/__init__.py replace runtime list of modules for static one | dev | pyside/pyside-setup | Status: MERGED | +2 | +1 |
581662,2 | PySide6/__init__.py replace runtime list of modules for static one | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
581736,2 | PySide6/__init__.py replace runtime list of modules for static one | tqtc/lts-6.5 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
582872,2 | PySide6/__init__.py replace runtime list of modules for static one | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |