summaryrefslogtreecommitdiff
path: root/qutebrowser/browser/hints.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-03-22 13:37:12 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-03-23 12:53:23 +0100
commit3e4e59f028d7b5e0a46a18b9a3e72c1ade548897 (patch)
treef75e48478c0377588bcf9c0c9716834211c36e1c /qutebrowser/browser/hints.py
parentac52268a4599cf6bfc32885bb4eb6586288ffded (diff)
downloadqutebrowser-3e4e59f028d7b5e0a46a18b9a3e72c1ade548897.tar.gz
qutebrowser-3e4e59f028d7b5e0a46a18b9a3e72c1ade548897.zip
Circular import workarounds
Diffstat (limited to 'qutebrowser/browser/hints.py')
-rw-r--r--qutebrowser/browser/hints.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py
index 333c532d3..3a7f949ce 100644
--- a/qutebrowser/browser/hints.py
+++ b/qutebrowser/browser/hints.py
@@ -36,7 +36,7 @@ from PyQt5.QtWidgets import QLabel
from qutebrowser.config import config, configexc
from qutebrowser.keyinput import modeman, modeparsers, basekeyparser
from qutebrowser.browser import webelem, history
-from qutebrowser.commands import userscripts, runners
+from qutebrowser.commands import runners
from qutebrowser.api import cmdutils
from qutebrowser.utils import usertypes, log, qtutils, message, objreg, utils
if TYPE_CHECKING:
@@ -320,6 +320,9 @@ class HintActions:
elem: The QWebElement to use in the userscript.
context: The HintContext to use.
"""
+ # lazy import to avoid circular import issues
+ from qutebrowser.commands import userscripts
+
cmd = context.args[0]
args = context.args[1:]
env = {