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
                         ^
This commit is contained in:
evandrocoan 2020-03-17 00:24:37 -03:00
parent 51823bf1ff
commit 034ac10cf4

View file

@ -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: