llama-stack-mirror/src/llama_stack/testing
Ashwin Bharambe 94b0592240
fix(mypy): add type stubs and fix typing issues (#3938)
Adds type stubs and fixes mypy errors for better type coverage.

Changes:
- Added type_checking dependency group with type stubs (torchtune, trl,
etc.)
- Added lm-format-enforcer to pre-commit hook
- Created HFAutoModel Protocol for type-safe HuggingFace model handling
- Added mypy.overrides for untyped libraries (torchtune, fairscale,
etc.)
- Fixed type issues in post-training providers, databricks, and
api_recorder

Note: ~1,200 errors remain in excluded files (see pyproject.toml exclude
list).

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-28 11:00:09 -07:00
..
__init__.py chore(package): migrate to src/ layout (#3920) 2025-10-27 12:02:21 -07:00
api_recorder.py fix(mypy): add type stubs and fix typing issues (#3938) 2025-10-28 11:00:09 -07:00