Commit graph

4 commits

Author SHA1 Message Date
Ashwin Bharambe
99380de095 fix(types): add future annotations import for S3Client type hints
Add 'from __future__ import annotations' to enable postponed evaluation
of annotations. This allows S3Client type hints (imported only under
TYPE_CHECKING) to work correctly at runtime without NameError.

Fixes unit test collection error:NameError: name 'S3Client' is not defined
2025-10-28 10:48:45 -07:00
Ashwin Bharambe
24667e43e0 address feedback 2025-10-28 10:37:48 -07:00
Ashwin Bharambe
9c877730ca fix(mypy): resolve boto3 S3 typing issues in files.py
Add boto3-stubs[s3] dev dependency and use TYPE_CHECKING with cast() to
provide proper S3Client type hints while avoiding boto3-stubs' overly
strict overload definitions.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-28 10:37:48 -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/remote/files/s3/files.py (Browse further)