Fixed mypy error, refs #568

This commit is contained in:
Simon Willison 2023-07-22 12:27:41 -07:00
commit 86a352f8b7

View file

@ -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():