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.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:
|
||||
|
|
Loading…
Reference in a new issue