fix(tests): fix typing issues

This commit is contained in:
psychedelicious
2023-12-11 16:22:29 +11:00
parent f1b6f78319
commit fa7d002175
2 changed files with 23 additions and 23 deletions

View File

@ -277,7 +277,7 @@ class SQLiteMigrator:
"""Gets the current version of the database, or 0 if the migrations table does not exist."""
try:
cursor.execute("SELECT MAX(version) FROM migrations;")
version = cursor.fetchone()[0]
version: int = cursor.fetchone()[0]
if version is None:
return 0
return version