diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index 2b3e231..36ec524 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -959,7 +959,7 @@ class Database: # Transform table to match the new definition if table already exists: if self[name].exists(): if ignore: - return self[name] + return cast(Table, self[name]) elif replace: self[name].drop() if transform and self[name].exists():