Skip to content

fix: validate ParameterDef.bounds are comparable at construction#100

Merged
rororowyourboat merged 1 commit intodevfrom
fix/95-parameterdef-bounds
Mar 4, 2026
Merged

fix: validate ParameterDef.bounds are comparable at construction#100
rororowyourboat merged 1 commit intodevfrom
fix/95-parameterdef-bounds

Conversation

@rororowyourboat
Copy link
Collaborator

Summary

  • Add @model_validator to ParameterDef that rejects non-comparable or inverted bounds at construction
  • 4 new tests: inverted bounds, non-comparable types, equal bounds (valid), None bounds (valid)

Closes #95

@rororowyourboat rororowyourboat merged commit 8fd2c89 into dev Mar 4, 2026
@rororowyourboat rororowyourboat deleted the fix/95-parameterdef-bounds branch March 4, 2026 10:13
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.

fix: validate ParameterDef.bounds types at construction

1 participant