uic/Python: Add comments for mypy to ignore star imports

Amends 2f975b39a9.

Pick-to: 6.1 5.15
Fixes: PYSIDE-1404
Change-Id: I534d78bdf44eb02bf80831a3d6c1d080a4e08698
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
This commit is contained in:
Friedemann Kleint 2021-04-29 15:40:44 +02:00
parent ebf91d1d13
commit ac95326ad4
2 changed files with 6 additions and 6 deletions

View File

@ -40,9 +40,9 @@ QT_BEGIN_NAMESPACE
static QString standardImports()
{
return QString::fromLatin1(R"I(from PySide%1.QtCore import *
from PySide%1.QtGui import *
from PySide%1.QtWidgets import *
return QString::fromLatin1(R"I(from PySide%1.QtCore import * # type: ignore
from PySide%1.QtGui import * # type: ignore
from PySide%1.QtWidgets import * # type: ignore
)I").arg(QT_VERSION_MAJOR);
}

View File

@ -36,9 +36,9 @@
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import *
from PySide6.QtGui import *
from PySide6.QtWidgets import *
from PySide6.QtCore import * # type: ignore
from PySide6.QtGui import * # type: ignore
from PySide6.QtWidgets import * # type: ignore
from gammaview import GammaView