From f33f2f43562ba1feab0401f5b2d60c5c853db830 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 22 Dec 2019 12:30:29 +1000 Subject: [PATCH] fix failing checks --- aqt/editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/editor.py b/aqt/editor.py index edae9d56b..cf500c4c2 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -11,7 +11,7 @@ import urllib.error import urllib.parse import urllib.request import warnings -from typing import Optional, Callable, List, Tuple +from typing import Callable, List, Optional, Tuple import requests from bs4 import BeautifulSoup @@ -140,7 +140,7 @@ class Editor: if cmd not in self._links: self._links[cmd] = func if keys: - QShortcut(QKeySequence(keys), self.widget, + QShortcut(QKeySequence(keys), self.widget, # type: ignore activated=lambda s=self: func(s)) btn = self._addButton(icon, cmd, tip=tip, label=label, id=id, toggleable=toggleable, disables=disables)