Skip to content

Ensure that dynamic properties also narrow the parent - #712

Merged
hadley merged 3 commits into
mainfrom
dynamic-must-also-narrow
Jul 27, 2026
Merged

hadley merged 3 commits into
mainfrom
dynamic-must-also-narrow

Conversation

@hadley

@hadley hadley commented Jun 20, 2026

Copy link
Copy Markdown
Member

In practice, I don't expect this to have much impact since I think dynamic properties are mostly going to be class_any, but I don't see any resason not to check any the type information that the user did provide.

Fixes #708

In practice, I don't expect this to have much impact since I think dynamic properties are mostly going to be `class_any`, but I don't see any resason not to check any the type information that the user did provide.

Fixes #708
@hadley
hadley requested a review from t-kalinowski June 20, 2026 12:03
@hadley
hadley merged commit 57a4b33 into main Jul 27, 2026
13 checks passed
@hadley
hadley deleted the dynamic-must-also-narrow branch July 27, 2026 20:45
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.

Dynamic properties are not checked for consistency with parent

2 participants