mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
fix failing checks
This commit is contained in:
parent
0150056f2b
commit
f33f2f4356
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ import urllib.error
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
import urllib.request
|
import urllib.request
|
||||||
import warnings
|
import warnings
|
||||||
from typing import Optional, Callable, List, Tuple
|
from typing import Callable, List, Optional, Tuple
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
@ -140,7 +140,7 @@ class Editor:
|
||||||
if cmd not in self._links:
|
if cmd not in self._links:
|
||||||
self._links[cmd] = func
|
self._links[cmd] = func
|
||||||
if keys:
|
if keys:
|
||||||
QShortcut(QKeySequence(keys), self.widget,
|
QShortcut(QKeySequence(keys), self.widget, # type: ignore
|
||||||
activated=lambda s=self: func(s))
|
activated=lambda s=self: func(s))
|
||||||
btn = self._addButton(icon, cmd, tip=tip, label=label,
|
btn = self._addButton(icon, cmd, tip=tip, label=label,
|
||||||
id=id, toggleable=toggleable, disables=disables)
|
id=id, toggleable=toggleable, disables=disables)
|
||||||
|
|
Loading…
Reference in a new issue