Fix make ty#29
Conversation
Replace type: ignore comments with proper casts and type annotations: - ingest.py: cast duck-typed objects to ContentFile - methods.py: annotate MCP tool dicts as Any - workflow.py: cast messages, file_search_tool, and StateGraph args - streamlit_app.py: fix workflow parameter type from Workflow to Any Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: gabemontero <gmontero@redhat.com>
PR Summary by QodoFix ty type-check errors and document pyproject swap for app/server
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1. README dirties dependency files
|
| cp pyproject.llama-stack.toml pyproject.toml | ||
| uv sync | ||
| source .venv/bin/activate | ||
| uv run llama stack run run.yaml |
There was a problem hiding this comment.
1. Readme dirties dependency files 🐞 Bug ⚙ Maintainability
README.md now instructs users to overwrite the tracked pyproject.toml in-place (twice) and run `uv sync`, which can also update the tracked uv.lock and leave the repo in a dirty state. If those changes are accidentally committed, the app container build can fail because it uses `uv sync --frozen` and requires uv.lock to match pyproject.toml exactly.
Agent Prompt
## Issue description
README instructions overwrite `pyproject.toml` in-place (switching between `pyproject.llama-stack.toml` and `pyproject.orig.toml`) and rerun `uv sync`. This commonly leaves modified tracked files (`pyproject.toml`, and potentially `uv.lock`) in the working tree, increasing the chance of accidental commits; those commits can break the container build because it relies on `uv sync --frozen`.
## Issue Context
- The app image build copies `pyproject.toml` + `uv.lock` and runs `uv sync --frozen`.
- The README now suggests swapping `pyproject.toml` for different dependency sets.
## Fix Focus Areas
- README.md[71-78]
- README.md[120-127]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| ## Run the application Code | ||
|
|
||
| ```bash | ||
| cp pyproject.orig.toml pyproject.toml |
There was a problem hiding this comment.
SHould we delete the pyproject.toml from main? Because it is still present in the repo.
There was a problem hiding this comment.
yeah I wasn't sure @maysunfaisal .... I suspect it is better to have one in place just in case, so that the compiling etc. of the python project is viable out of the box
I also considered creating a "run llama stack" sub directory, and just move that pyproject.toml there, and then change the directions to cd into that directory, do the other stuff, etc.
WDYT ... maybe I should pivot to the subdirectory ? Any other ideas on how to better manager this?
What does this PR do?:
Replace type: ignore comments with proper casts and type annotations:
also updated the README to deal with the pyproject differences between launching llamastack and launching the app
Which issue(s) this PR fixes:
errors seen in #28
PR acceptance criteria:
Testing and documentation do not need to be complete in order for this PR to be approved. We just need to ensure tracking issues are opened and linked to this PR, if they are not in the PR scope due to various constraints.
[/] Tested and Verified
[/] Documentation (READMEs, Product Docs, Blogs, Education Modules, etc.)
How to test changes / Special notes to the reviewer: