Skip to content

Fix/mypy stage types#53

Merged
kohankhaki merged 2 commits into
mainfrom
fix/mypy-stage-types
Jan 27, 2026
Merged

Fix/mypy stage types#53
kohankhaki merged 2 commits into
mainfrom
fix/mypy-stage-types

Conversation

@kohankhaki
Copy link
Copy Markdown
Contributor

PR Type

Fix

Short Description

Add missing type annotations to stage files (stage2-5) and base stage files to resolve mypy errors.

Tests Added

N/A

@kohankhaki kohankhaki force-pushed the fix/mypy-stage-types branch from b6c349f to 3d3aa13 Compare January 27, 2026 18:28
- Add Optional type annotation to stage function parameters (stage2-5)
- Add Capability type annotation to base stage functions
- Add type annotations for list variables (capabilities, all_tasks)
- Add None checks for generation_metadata dict unpacking
- Add assertions before return statements to satisfy mypy
@kohankhaki kohankhaki force-pushed the fix/mypy-stage-types branch from 3d3aa13 to 9d3e0c7 Compare January 27, 2026 18:30
- stage0_setup.py: Cast OmegaConf config to Dict[str, Any]
- model_client_utils.py: Remove unused type: ignore comment
- capability_management_utils.py: Convert set to list for return type
- embedding_utils.py: Add type annotation to rep_string_order parameter
@kohankhaki kohankhaki merged commit f806f97 into main Jan 27, 2026
1 of 2 checks passed
@kohankhaki kohankhaki deleted the fix/mypy-stage-types branch January 27, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants