From 3f3a8fc4ab97d49822893d8eaa40e9375e7f1a76 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 22 Jan 2020 16:54:18 +1000 Subject: [PATCH] move ignore statements for python 3.7 sigh :-( https://github.com/python/mypy/issues/3251#issuecomment-490298556 --- qt/aqt/webview.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qt/aqt/webview.py b/qt/aqt/webview.py index 233f86b90..f40ed8ce8 100644 --- a/qt/aqt/webview.py +++ b/qt/aqt/webview.py @@ -118,12 +118,12 @@ class AnkiWebView(QWebEngineView): # type: ignore self.resetHandlers() self.allowDrops = False self._filterSet = False - QShortcut( + QShortcut( # type: ignore QKeySequence("Esc"), self, context=Qt.WidgetWithChildrenShortcut, activated=self.onEsc, - ) # type: ignore + ) if isMac: for key, fn in [ (QKeySequence.Copy, self.onCopy), @@ -131,15 +131,15 @@ class AnkiWebView(QWebEngineView): # type: ignore (QKeySequence.Cut, self.onCut), (QKeySequence.SelectAll, self.onSelectAll), ]: - QShortcut( + QShortcut( # type: ignore key, self, context=Qt.WidgetWithChildrenShortcut, activated=fn - ) # type: ignore - QShortcut( + ) + QShortcut( # type: ignore QKeySequence("ctrl+shift+v"), self, context=Qt.WidgetWithChildrenShortcut, activated=self.onPaste, - ) # type: ignore + ) def eventFilter(self, obj, evt): # disable pinch to zoom gesture