From 46915605224c94a87d02e8544ab867527af7f6fb Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 26 Jul 2023 21:10:19 +1000 Subject: [PATCH] Work around CI failure on Windows with PyQt 6.5.2 --- qt/aqt/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 231a64860..7047080c6 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -1668,7 +1668,9 @@ title="{}" {}>{}""".format( def hideStatusTips(self) -> None: for action in self.findChildren(QAction): - cast(QAction, action).setStatusTip("") + # On Windows, this next line gives a 'redundant cast' error after moving to + # PyQt6.5.2. + cast(QAction, action).setStatusTip("") # type: ignore def onMacMinimize(self) -> None: self.setWindowState(self.windowState() | Qt.WindowState.WindowMinimized) # type: ignore