mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-12 19:44:13 +02:00
Add assert for tables.callback before calling
Click's callback attribute is typed as Optional[Callable], so add assert to satisfy type checker that it's not None. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
0ee090f541
commit
116cc99791
1 changed files with 1 additions and 0 deletions
|
|
@ -293,6 +293,7 @@ def views(
|
|||
\b
|
||||
sqlite-utils views trees.db
|
||||
"""
|
||||
assert tables.callback is not None
|
||||
tables.callback(
|
||||
path=path,
|
||||
fts4=False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue