Skip to content

MAINT Return Self from HarmDefinition.from_yaml (P311-01) - #3529

Merged
Roman Lutz (romanlutz) merged 2 commits into
microsoft:mainfrom
juliosuas:maint/3166-p311-01-harmdef
Oct 26, 2026
Merged

Roman Lutz (romanlutz) merged 2 commits into
microsoft:mainfrom
juliosuas:maint/3166-p311-01-harmdef

Conversation

@juliosuas

Copy link
Copy Markdown
Contributor

Part of #3166 (P311-01).

HarmDefinition.from_yaml now returns Self, so subclasses get their own type back. Behavior is unchanged. Added subclass runtime and assert_type tests.

AI-assisted; reviewed and tested by me.

@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Oct 26, 2026
Merged via the queue into microsoft:main with commit e38de39 Oct 26, 2026
63 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants