Skip to content

Commit 116cc99

Browse files
simonwclaude
andcommitted
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 <[email protected]>
1 parent 0ee090f commit 116cc99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlite_utils/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ def views(
293293
\b
294294
sqlite-utils views trees.db
295295
"""
296+
assert tables.callback is not None
296297
tables.callback(
297298
path=path,
298299
fts4=False,

0 commit comments

Comments
 (0)