lint fixes

This commit is contained in:
Damien Elmes 2020-06-02 17:58:14 +10:00
parent 59bbf02364
commit 4c6bd7b037
2 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@ from anki.utils import ids2str
from aqt import AnkiQt, gui_hooks
from aqt.qt import *
from aqt.sound import av_player
from aqt.sync import get_sync_status
from aqt.toolbar import BottomBar
from aqt.utils import askUser, getOnlyText, openLink, shortcut, showWarning, tr

View File

@ -41,7 +41,7 @@ class FullSyncChoice(enum.Enum):
def get_sync_status(mw: aqt.main.AnkiQt, callback: Callable[[SyncStatus], None]):
auth = mw.pm.sync_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):
try: