Fix mypy type errors

- Add type: ignore comments for runtime-valid patterns mypy can't verify
- Fix new_column_types annotation to Dict[str, Set[type]]
- Add type: ignore for Default sentinel values passed to create_table

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Simon Willison 2025-12-16 21:45:40 -08:00
commit 683d9cac0c
2 changed files with 15 additions and 15 deletions

View file

@ -464,7 +464,7 @@ class ValueTracker:
def test_integer(self, value: object) -> bool:
try:
int(value) # type: ignore[arg-type]
int(value) # type: ignore
return True
except (ValueError, TypeError):
return False
@ -504,7 +504,7 @@ class NullProgressBar:
self.args = args
def __iter__(self) -> Iterator[T]:
yield from self.args[0]
yield from self.args[0] # type: ignore
def update(self, value: int) -> None:
pass