Commit graph

2 commits

Author SHA1 Message Date
Ashwin Bharambe
f34b6288cc fix(mypy): resolve type issues in MongoDB, batches, and auth providers
Resolves typing issues across provider utilities:

**MongoDB (6 errors fixed):**
- Fix AsyncMongoClient parameter dict unpacking by building typed dict with None filtering
- Fix AsyncCursor synchronous iteration - use async for loop

**Batches (1 error fixed):**
- Handle memoryview|bytes union type for file content decoding

**Auth Providers (4 errors fixed):**
- Add missing Any import
- Ensure JWKS URI is not None with validation
- Only pass lifespan parameter when configured (let library use its default)
- Conditionally build httpx post kwargs to avoid passing None for auth

Fixes 11 mypy type errors in provider utility layer.
2025-10-27 21:26:29 -07:00
Ashwin Bharambe
471b1b248b
chore(package): migrate to src/ layout (#3920)
Migrates package structure to src/ layout following Python packaging
best practices.

All code moved from `llama_stack/` to `src/llama_stack/`. Public API
unchanged - imports remain `import llama_stack.*`.

Updated build configs, pre-commit hooks, scripts, and GitHub workflows
accordingly. All hooks pass, package builds cleanly.

**Developer note**: Reinstall after pulling: `pip install -e .`
2025-10-27 12:02:21 -07:00
Renamed from llama_stack/providers/inline/batches/reference/batches.py (Browse further)