mypy: Make misc.sql fully typed

That was an oversight apparently
This commit is contained in:
Florian Bruhin 2023-06-30 00:58:41 +02:00
parent 31ece1ecb0
commit 43fc49e5ad
2 changed files with 1 additions and 4 deletions

View File

@ -265,9 +265,6 @@ disallow_untyped_defs = False
[mypy-qutebrowser.misc.split] [mypy-qutebrowser.misc.split]
disallow_untyped_defs = False disallow_untyped_defs = False
[mypy-qutebrowser.misc.sql]
disallow_untyped_defs = False
[mypy-qutebrowser.qutebrowser] [mypy-qutebrowser.qutebrowser]
disallow_untyped_defs = False disallow_untyped_defs = False

View File

@ -349,7 +349,7 @@ class Query:
msg = f'Failed to {step} query "{query}": "{error.text()}"' msg = f'Failed to {step} query "{query}": "{error.text()}"'
raise_sqlite_error(msg, error) raise_sqlite_error(msg, error)
def _validate_bound_values(self): def _validate_bound_values(self) -> None:
"""Make sure all placeholders are bound.""" """Make sure all placeholders are bound."""
qt_bound_values = self.query.boundValues() qt_bound_values = self.query.boundValues()
if machinery.IS_QT5: if machinery.IS_QT5: