You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Harden fixed-component chart definitions by validating, at class creation
time, that charts with a concrete dimensionality flag declare the correct
number of components. The check is centralized in
`AbstractFixedComponentsChart.__init_subclass__`, replacing duplicated
TODOs across the predefined chart hierarchy while leaving abstract and
variable-dimensional charts unaffected. A regression test now verifies
every predefined chart satisfies the invariant.
Also remove the unused `normalize_vector` abstract dispatch, which had no
implementations, exports, callers, or tests.
A follow-up fixes an import regression introduced during refactoring by
restricting the validation to charts whose declared dimensionality is a
concrete integer, avoiding variable-dimensional charts such as `CartND`.
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments