diff --git a/anki/collection.py b/anki/collection.py index 370391980..fb39e6339 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -697,7 +697,7 @@ where c.nid == f.id def _undoReview(self): data = self._undo[2] wasLeech = self._undo[3] - c = data.pop() + c = data.pop() # pytype: disable=attribute-error if not data: self.clearUndo() # remove leech tag if it didn't have it before diff --git a/anki/find.py b/anki/find.py index 8ebca5346..e4d5f7a21 100644 --- a/anki/find.py +++ b/anki/find.py @@ -316,7 +316,7 @@ select distinct(n.id) from cards c, notes n where c.nid=n.id and """+preds if not m: return prop, cmp, val = m.groups() - prop = prop.lower() + prop = prop.lower() # pytype: disable=attribute-error # is val valid? try: if prop == "ease": diff --git a/anki/stats.py b/anki/stats.py index 197ef0733..69df4b935 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -830,7 +830,7 @@ from cards where did in %s""" % self._limit()) height = self.height if type == "bars": conf['series']['bars'] = dict( - show=True, barWidth=0.8, align="center", fill=0.7, lineWidth=0) + show=True, barWidth=0.8, align="center", fill=0.7, lineWidth=0) # pytype: disable=unsupported-operands elif type == "barsLine": print("deprecated - use 'bars' instead") conf['series']['bars'] = dict( diff --git a/anki/sync.py b/anki/sync.py index 1648bf871..48de878ef 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -458,10 +458,10 @@ class AnkiRequestsClient: self.session = requests.Session() def post(self, url, data, headers): - data = _MonitoringFile(data) + data = _MonitoringFile(data) # pytype: disable=wrong-arg-types headers['User-Agent'] = self._agentName() return self.session.post( - url, data=data, headers=headers, stream=True, timeout=self.timeout, verify=self.verify) + url, data=data, headers=headers, stream=True, timeout=self.timeout, verify=self.verify) # pytype: disable=wrong-arg-types def get(self, url, headers=None): if headers is None: