Repository navigation
Fix dangling clause and other small issues - #1519
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, and the documentation-only changes clarify specification references without altering runtime behavior.
No open issues 🎉
What changed in this PR
This documentation-only PR clarifies specification references and removes ambiguity from comments and test docstrings describing HED value classes, character sets, placeholder validation, and library provenance. It does not change runtime behavior.
Changes:
- Clarifies value-text and value-class behavior, including standard and schema-defined class handling.
- Adds specification references for character declarations, declaration precedence, and unpartnered library handling.
- Improves documentation of placeholder validation and schema-loading behavior.
| File | Description |
|---|---|
| tests/validator/test_value_text.py | Clarifies test documentation for standard value-class declaration precedence and the schema-defined class exception. |
| tests/validator/test_char_validator.py | Documents declaration precedence while distinguishing standard value classes from schema-defined classes. |
| tests/schema/test_hed_schema_io.py | Adds specification context for handling unpartnered libraries during schema loading. |
| hed/validator/util/class_util.py | Clarifies the character-set rule for placeholders without a value class. |
| hed/validator/util/char_util.py | Documents direct value-text validation and version-dependent character-set behavior. |
| hed/validator/hed_validator.py | Clarifies direct value-text validation for unclassed placeholders. |
| hed/schema/schema_io/base2schema.py | Explains when the inLibrary attribute is applied during schema loading. |
Review effort: Lite
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.
No description provided.