From 034ac10cf46e8cf26982fcef87864bc3c751ce09 Mon Sep 17 00:00:00 2001 From: evandrocoan Date: Tue, 17 Mar 2020 00:24:37 -0300 Subject: [PATCH] Fixed error: Incompatible types in assignment on qt/aqt/main.py aqt\main.py:1437: error: Incompatible types in assignment (expression has type Module, variable has type "LibraryLoader[WinDLL]") [assignment] _dummy = wintypes ^ --- qt/aqt/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 3f3034bb5..7b17bf50f 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -1430,11 +1430,11 @@ will be lost. Continue?""" self.maybeHideAccelerators() self.hideStatusTips() elif isWin: - # make sure ctypes is bundled from ctypes import windll, wintypes # type: ignore - _dummy = windll - _dummy = wintypes + # make sure ctypes is bundled + _dummy1 = windll + _dummy2 = wintypes def maybeHideAccelerators(self, tgt: Optional[Any] = None) -> None: if not self.hideMenuAccels: