You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spotted this bug using mypy while working on #311 / #312!
% mypy sqlite_utils
sqlite_utils/db.py:725: error: Item "View" of "Union[Table, View]" has no attribute "foreign_keys"
Found 1 error in 1 file (checked 5 source files)
* Docstrings and type annotations for almost every method
* New /reference API documentation page using Sphink autodoc
* Custom Read The Docs config, to get autodoc working
* Fix for #313 (add_foreign_keys() doesn't reject being called with a View)
* Fixed#315 (.delete_where() returns [] when it should return self)
Spotted this bug using
mypy
while working on #311 / #312!Refers to this code:
sqlite-utils/sqlite_utils/db.py
Lines 710 to 720 in c11ff89
It's a bug! We run some checks earlier but none of them ensure that it's a view:
sqlite-utils/sqlite_utils/db.py
Lines 697 to 709 in c11ff89
The text was updated successfully, but these errors were encountered: