summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-06-30 00:58:41 +0200
committerFlorian Bruhin <me@the-compiler.org>2023-06-30 00:58:41 +0200
commit43fc49e5ad7938462e319e862ff0988ac62ef4ce (patch)
tree19dd2fdc3e74a69155b9125f44618304e7c832f5
parent31ece1ecb0fe3c6dec5e100bfcb9de42499c54d5 (diff)
downloadqutebrowser-43fc49e5ad7938462e319e862ff0988ac62ef4ce.tar.gz
qutebrowser-43fc49e5ad7938462e319e862ff0988ac62ef4ce.zip
mypy: Make misc.sql fully typed
That was an oversight apparently
-rw-r--r--.mypy.ini3
-rw-r--r--qutebrowser/misc/sql.py2
2 files changed, 1 insertions, 4 deletions
diff --git a/.mypy.ini b/.mypy.ini
index f34957197..ef34dbada 100644
--- a/.mypy.ini
+++ b/.mypy.ini
@@ -265,9 +265,6 @@ disallow_untyped_defs = False
[mypy-qutebrowser.misc.split]
disallow_untyped_defs = False
-[mypy-qutebrowser.misc.sql]
-disallow_untyped_defs = False
-
[mypy-qutebrowser.qutebrowser]
disallow_untyped_defs = False
diff --git a/qutebrowser/misc/sql.py b/qutebrowser/misc/sql.py
index 28a97fd77..c2f27db26 100644
--- a/qutebrowser/misc/sql.py
+++ b/qutebrowser/misc/sql.py
@@ -349,7 +349,7 @@ class Query:
msg = f'Failed to {step} query "{query}": "{error.text()}"'
raise_sqlite_error(msg, error)
- def _validate_bound_values(self):
+ def _validate_bound_values(self) -> None:
"""Make sure all placeholders are bound."""
qt_bound_values = self.query.boundValues()
if machinery.IS_QT5: