Spaces:
Running

Daniel Wiesmann commited on
Commit
3245c3b
·
1 Parent(s): 8429e5e

Add mypy type checking to CI and fix type errors

Browse files

Add mypy to dev dependencies with strict mode config and per-module overrides
for untyped deps (dspy, duckdb) and test files. Fix type errors surfaced by
the initial run:

- Annotate _to_serializable in export.py and wrap _is_geojson_col return
- Add return type and param annotations to lifespan and log_request in api.py
- Add type: ignore on _df_to_records for pandas-stubs Hashable key mismatch
- Fix PlacesResult import in test_lm.py (defined in schemas, not lm)
- Add type check step to CI lint job

6 files changed +155 -7
Files changed (6)
.github/workflows/ci.yml+8
pyproject.toml+29-1
src/gazet/api.py+10-3
src/gazet/export.py+3-2
tests/test_lm.py+1-1
uv.lock+104