Repository navigation
2.1.1: own annotations through inspect.get_annotations (Python 3.14) - #26
Merged
Merged
Conversation
trissim
added a commit
to OpenHCSDev/openhcs
that referenced
this pull request
Oct 11, 2026
Official30 parity on 3.14 failed because ObjectState rebuilt a config class whose redeclared field it misread as inherited. Lockstep with OpenHCSDev/ObjectState#26; release-readiness needs v1.3.2 tagged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Python 3.14 (PEP 649) no longer stores class annotations in cls.__dict__['__annotations__']. get_inherited_field_names therefore treated every redeclared parent field as inherited and rebuilt the class with None defaults, so @global_pipeline_config returned a new class whose identity no longer matched the one its module exported (OpenHCS: 'analysis_consolidation_config must be AnalysisConsolidationConfig; got AnalysisConsolidationConfig' on 3.14). Field abbreviations were lost on 3.14 for the same reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
trissim
force-pushed
the
b6-py314-annotations
branch
from
October 11, 2026 16:12
1ac5777 to
a44b90b
Compare
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.
Part of OpenHCS surface B6 (main's CI green, OpenHCSDev/openhcs#1195).
On Python 3.14 a class's own annotations are no longer in
cls.__dict__['__annotations__'], soget_inherited_field_namesreported a redeclared field (enabled) as inherited and rebuilt the class. OpenHCS's config field then pointed at a different class object than the one its domain module exports, and Official30 parity on 3.14 failed with "analysis_consolidation_configmust beAnalysisConsolidationConfig; gotAnalysisConsolidationConfig". The fix reads own annotations throughinspect.get_annotations.Bumps to 1.3.2. Release needs the owner: after merge, tag
v1.3.2so it publishes; OpenHCS then requiresobjectstate>=1.3.2.🤖 Generated with Claude Code