Skip to content

Narrow the transform validators' catch-all return types - #43

Merged
user27182 merged 1 commit into
mainfrom
fix/transform-return-types
Sep 27, 2026
Merged

user27182 merged 1 commit into
mainfrom
fix/transform-return-types

Conversation

@user27182

Copy link
Copy Markdown
Contributor

validate_transform4x4 always returns a floating array, and validate_transform3x3 and validate_rotation return a real one; all three reject booleans. Their TransformLike and RotationLike overloads returned _Array2D[_Scalar], which includes np.bool_ and, for the 4x4 validator, integers, so callers had to cast results they use as floats.

  • validate_transform4x4 catch-all returns _Array2D[_Floating].
  • validate_transform3x3 and validate_rotation catch-alls return _Array2D[_Real].

Changes drafted by Claude Opus 5.5 but fully understood by me.

🤖 Generated with Claude Code (Claude Opus 5.5)

`validate_transform4x4` always returns a floating array, and
`validate_transform3x3` and `validate_rotation` return a real one; all three
reject booleans. Their `TransformLike`/`RotationLike` overloads returned
`_Array2D[_Scalar]`, which includes `np.bool_` and, for the 4x4 case, integers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.74%. Comparing base (7ce3e09) to head (98c2927).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #43   +/-   ##
=======================================
  Coverage   99.74%   99.74%           
=======================================
  Files          11       11           
  Lines        1169     1169           
  Branches      135      135           
=======================================
  Hits         1166     1166           
  Misses          1        1           
  Partials        2        2           
Flag Coverage Δ
tests 99.46% <ø> (ø)
typing 97.88% <ø> (ø)

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.

@user27182
user27182 marked this pull request as ready for review September 27, 2026 16:58
@user27182
user27182 merged commit 941653e into main Sep 27, 2026
24 checks passed
@user27182
user27182 deleted the fix/transform-return-types branch September 27, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants