Skip to content

Type model and options as exported Model and Options TypedDicts - #116

Merged
ruscoder merged 1 commit into
masterfrom
fix/typed-model-options
Dec 3, 2026
Merged

ruscoder merged 1 commit into
masterfrom
fix/typed-model-options

Conversation

@ruscoder

@ruscoder ruscoder commented Dec 3, 2026

Copy link
Copy Markdown
Member

evaluate and compile typed model and options as dict, so type-checked callers that keep them in a TypedDict got arg-type errors from mypy, and models["r4"] was an untyped dict.

Adds exported Model and Options TypedDicts, uses them for model and options, types models as Model values, and accepts any mapping as context. Runtime is unchanged; a caller that passes a plain dict variable annotates it as Model or Options. Bumps to 3.0.1.

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.77%. Comparing base (240e740) to head (b130900).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #116      +/-   ##
==========================================
+ Coverage   90.74%   90.77%   +0.02%     
==========================================
  Files          27       27              
  Lines        3750     3761      +11     
==========================================
+ Hits         3403     3414      +11     
  Misses        347      347              
Flag Coverage Δ
unittests 90.77% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ruscoder
ruscoder merged commit e8ab5bd into master Dec 3, 2026
12 checks passed
@ruscoder
ruscoder deleted the fix/typed-model-options branch December 3, 2026 15:40
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