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

Amends 2f975b39a967cd2ac1c234a200eb6b9c11d8b5b2.

Fixes: PYSIDE-1404
Change-Id: I534d78bdf44eb02bf80831a3d6c1d080a4e08698
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit ac95326ad46fbff310ad25baaf96262d851509c1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Friedemann Kleint 2021-04-29 15:40:44 +02:00 committed by Qt Cherry-pick Bot
parent 2afad7c8ee
commit 5a7d1b2a03
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