mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
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:
parent
51823bf1ff
commit
034ac10cf4
1 changed files with 3 additions and 3 deletions
|
@ -1430,11 +1430,11 @@ will be lost. Continue?"""
|
||||||
self.maybeHideAccelerators()
|
self.maybeHideAccelerators()
|
||||||
self.hideStatusTips()
|
self.hideStatusTips()
|
||||||
elif isWin:
|
elif isWin:
|
||||||
# make sure ctypes is bundled
|
|
||||||
from ctypes import windll, wintypes # type: ignore
|
from ctypes import windll, wintypes # type: ignore
|
||||||
|
|
||||||
_dummy = windll
|
# make sure ctypes is bundled
|
||||||
_dummy = wintypes
|
_dummy1 = windll
|
||||||
|
_dummy2 = wintypes
|
||||||
|
|
||||||
def maybeHideAccelerators(self, tgt: Optional[Any] = None) -> None:
|
def maybeHideAccelerators(self, tgt: Optional[Any] = None) -> None:
|
||||||
if not self.hideMenuAccels:
|
if not self.hideMenuAccels:
|
||||||
|
|
Loading…
Reference in a new issue