#362 - Improve static type safety for array feature structures - #363
Merged
reckart merged 1 commit intoJul 31, 2026
Merged
Conversation
- Introduce ArrayBase and FSArrayBase static base classes for array feature structures with typed elements - Add is_array_fs() and is_fs_array() type guards for static narrowing of array FS instances - Extend Type.__attrs_post_init__ base selection to pick ArrayBase or FSArrayBase as needed, skipping re-declaration of elements - Apply type guard narrowing at array access sites in cas.py, json.py, util.py, and xmi.py to resolve attribute errors - Annotate CasJsonSerializer._serialize_feature_structure() parameter for consistency
reckart
force-pushed
the
feature/362-Improve-static-type-safety-for-array-feature-structures
branch
from
July 31, 2026 20:48
6cd34c0 to
d4a0cd3
Compare
reckart
deleted the
feature/362-Improve-static-type-safety-for-array-feature-structures
branch
July 31, 2026 20:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's in the PR
How to test manually
Automatic testing
Documentation