From a5be72742cb66ddf3e6c0c5a81763f12aa1cd110 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Sat, 20 Mar 2021 16:06:26 +0100 Subject: [PATCH] Add BrowserRow to ignored classes --- pylib/.pylintrc | 1 + pylib/anki/collection.py | 2 +- qt/.pylintrc | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pylib/.pylintrc b/pylib/.pylintrc index 53b937e12..e8b5122bd 100644 --- a/pylib/.pylintrc +++ b/pylib/.pylintrc @@ -4,6 +4,7 @@ persistent = no [TYPECHECK] ignored-classes= + BrowserRow, FormatTimespanIn, AnswerCardIn, UnburyCardsInCurrentDeckIn, diff --git a/pylib/anki/collection.py b/pylib/anki/collection.py index 684b90bdb..7940e3adf 100644 --- a/pylib/anki/collection.py +++ b/pylib/anki/collection.py @@ -688,7 +688,7 @@ class Collection: def browser_row_for_card( self, cid: int - ) -> Tuple[Generator[Tuple[str, bool], None, None], BrowserRow.Color, str, int]: + ) -> Tuple[Generator[Tuple[str, bool], None, None], BrowserRow.Color.V, str, int]: row = self._backend.browser_row_for_card(cid) return ( ((cell.text, cell.is_rtl) for cell in row.cells), diff --git a/qt/.pylintrc b/qt/.pylintrc index 4a701207b..b4809e76d 100644 --- a/qt/.pylintrc +++ b/qt/.pylintrc @@ -6,6 +6,7 @@ ignore = forms,hooks_gen.py [TYPECHECK] ignored-modules=win32file,pywintypes,socket,win32pipe,winrt,pyaudio ignored-classes= + BrowserRow, SearchNode, Config, OpChanges