Repository navigation
chore: upgrade ty to 0.0.91 - #1498
Conversation
- raise dev floor to `ty>=0.0.91`, lock and attributions change ty only - annotate context managers with `Generator[X]` and `AsyncGenerator[X]` - drop casts ty marks as redundant - check LangChain message and tool lists with `_are_objects` before use - type LangGraph graph bubble sentinel as `JsonObject` - edit ADK test fixtures through `with_last_text` and typed values - mark test overrides of inherited attributes with rule-named `ty: ignore` Signed-off-by: Greyson Lalonde <[email protected]>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Type-checker configuration and annotations pyproject.toml, ATTRIBUTIONS-Python.md, python/nemo_relay/..., python/plugin/..., scripts/... |
The ty minimum version changes to 0.0.91, and a skills/** rule override is added. Generator annotations replace iterator annotations in library, plugin, and benchmark code. The LangGraph result type uses JsonObject. Supporting scripts update typing directives or remove a cast. |
LangChain deserialization validation python/nemo_relay/integrations/langchain/_serialization.py |
Message entries are checked as objects before deserialization. Tool entries are also checked, and the shared validation helpers are used by message restoration and tool-schema validation. |
Test and supporting-code adjustments python/tests/integrations/google_adk_tests/*, python/tests/integrations/langchain_tests/*, python/tests/plugin/*, python/tests/test_*.py |
Google ADK tests use a shared helper to replace the last message text. Other tests update JSON typing, assertions, callback handling, and middleware declarations. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Other
Merge Risk: 
Minimal · up to 6150a
-
No merge-blocking issue is established; the change is mergeable after normal checks.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Title check
-
Explanation
The title follows Conventional Commits with the allowed type 'chore', lowercase, imperative, 27 characters, no trailing period. It names the main change: upgrading ty to 0.0.91, which matches the dependency floor, lockfile, attributions, and type-error fixes in the changeset.
Full details: Description check
-
Explanation
The description fills the Overview section with a short statement of purpose and checks both confirmation boxes. The Details section lists the concrete changes: dev floor raised to ty>=0.0.91, Generator and AsyncGenerator annotations, removed redundant casts, LangChain validation, LangGraph sentinel typing, ADK fixture edits, and rule-named ty: ignore comments. The template's 'Where should the reviewer start?' section is present but left empty, and the 'Related Issues' section with its 'Closes #' line is missing entirely.
Resolution
Optional improvements: point reviewers to a starting file (for example python/nemo_relay/integrations/langchain/_serialization.py, which has the most behavioral logic) under 'Where should the reviewer start?', and add the 'Related Issues' section with a linked issue or 'Relates to' entry, or remove it if none applies.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 34.15% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 82 functions across 27 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
License DiffCompared against Lockfile license changesLockfile License ChangesRustAdded
Removed
Updated/Changed
NodeAdded
Removed
Updated/Changed
PythonAdded
Removed
Updated/Changed
|
|
/nvskills-ci |
|
We need to either get the skills CI to pass or drop the changes to the public skill |
- skip ty's deprecated rule under `skills/**` where an edit needs a new NVSkills signature Signed-off-by: Greyson Lalonde <[email protected]>
Overview
Bumps ty to latest, updates resulting type errors.
Details
ty>=0.0.91, lock and attributions change ty onlyGenerator[X]andAsyncGenerator[X]_are_objectsbefore useJsonObjectwith_last_textand typed valuesty: ignoreWhere should the reviewer start?
Summary by CodeRabbit