mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
python formatting+lints
This commit is contained in:
parent
1de8d4baaf
commit
c02716ccd8
3 changed files with 4 additions and 2 deletions
|
@ -737,7 +737,7 @@ where c.nid = n.id and c.id in %s group by nid"""
|
|||
c.nid,
|
||||
)
|
||||
# and finally, update daily counts
|
||||
n = 1 if c.queue in (3,4) else c.queue
|
||||
n = 1 if c.queue in (3, 4) else c.queue
|
||||
type = ("new", "lrn", "rev")[n]
|
||||
self.sched._updateStats(c, type, -1)
|
||||
self.sched.reps -= 1
|
||||
|
|
|
@ -17,11 +17,11 @@ import logging.handlers
|
|||
|
||||
# required by requests library
|
||||
import queue
|
||||
import socks
|
||||
import typing
|
||||
import uuid
|
||||
|
||||
import PyQt5.QtSvg
|
||||
import socks
|
||||
|
||||
from anki.utils import isLin, isWin
|
||||
|
||||
|
|
|
@ -50,3 +50,5 @@ ignore_missing_imports = True
|
|||
ignore_missing_imports = True
|
||||
[mypy-darkdetect]
|
||||
ignore_missing_imports = True
|
||||
[mypy-socks]
|
||||
ignore_missing_imports = True
|
||||
|
|
Loading…
Reference in a new issue