Skip to content

Conversation

@DavidCEllis
Copy link
Owner

This avoids recreating a slot for an attribute if the slot already exists on the class.

The proxy used for this is if the attribute exists as a MemberDescriptorType or one of our SlottedCachedProperty values. __slots__ isn't checked because there's no guarantee there are any values there.

This makes the behaviour of cached properties match more closely to that when slots=False.

@DavidCEllis DavidCEllis merged commit e165f96 into main Dec 6, 2025
7 checks passed
@DavidCEllis DavidCEllis deleted the fix-child-slot-overwrites-parent branch December 6, 2025 17:49
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