diff --git a/anki/collection.py b/anki/collection.py index 11caa61e2..c3fc6ca11 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -856,8 +856,12 @@ select id from notes where mid = ?) limit 1""" return False return True - def fixIntegrity(self) -> Tuple[Any, bool]: - "Fix possible problems and rebuild caches." + def fixIntegrity(self) -> Tuple[str, bool]: + """Fix possible problems and rebuild caches. + + Returns tuple of (error: str, ok: bool). 'ok' will be true if no + problems were found. + """ problems = [] curs = self.db.cursor() self.save()