Skip to content

fix(#58): add | None to type annotations for fields defaulting to None - #108

Merged
Manideep3969 merged 1 commit into
mainfrom
fix/issue-58-optional-type-annotations
Aug 24, 2026
Merged

fix(#58): add | None to type annotations for fields defaulting to None#108
Manideep3969 merged 1 commit into
mainfrom
fix/issue-58-optional-type-annotations

Conversation

@Manideep3969

Copy link
Copy Markdown
Owner

Fixes 10 dataclass fields across 4 files that were typed as non-nullable but defaulted to None. All 355 tests pass.

Dataclass fields that default to None but were typed without Optional
cause AttributeError when accessed on default instances and confuse
static type checkers. Add `| None` to all 10 such fields across
fusion.py, scheduling.py, transpiler.py, and autotuning.py.
@Manideep3969
Manideep3969 merged commit 7b4d44f into main Aug 24, 2026
4 checks passed
@Manideep3969
Manideep3969 deleted the fix/issue-58-optional-type-annotations branch August 24, 2026 05:14
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.

1 participant