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:
parent
ebf91d1d13
commit
ac95326ad4
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user