mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
lint fixes
This commit is contained in:
parent
59bbf02364
commit
4c6bd7b037
2 changed files with 1 additions and 2 deletions
|
@ -15,7 +15,6 @@ from anki.utils import ids2str
|
||||||
from aqt import AnkiQt, gui_hooks
|
from aqt import AnkiQt, gui_hooks
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
from aqt.sound import av_player
|
from aqt.sound import av_player
|
||||||
from aqt.sync import get_sync_status
|
|
||||||
from aqt.toolbar import BottomBar
|
from aqt.toolbar import BottomBar
|
||||||
from aqt.utils import askUser, getOnlyText, openLink, shortcut, showWarning, tr
|
from aqt.utils import askUser, getOnlyText, openLink, shortcut, showWarning, tr
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ class FullSyncChoice(enum.Enum):
|
||||||
def get_sync_status(mw: aqt.main.AnkiQt, callback: Callable[[SyncStatus], None]):
|
def get_sync_status(mw: aqt.main.AnkiQt, callback: Callable[[SyncStatus], None]):
|
||||||
auth = mw.pm.sync_auth()
|
auth = mw.pm.sync_auth()
|
||||||
if not auth:
|
if not auth:
|
||||||
return SyncStatus(required=SyncStatus.NO_CHANGES)
|
return SyncStatus(required=SyncStatus.NO_CHANGES) # pylint:disable=no-member
|
||||||
|
|
||||||
def on_future_done(fut):
|
def on_future_done(fut):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue