Skip to content

Conversation

@DavidCEllis
Copy link
Owner

This changes how SlotMakerMeta handles cached properties.

  • No longer creates a __dict__
  • Adds _SlottedCachedProperty, a descriptor that wraps both the slot descriptor and the function wrapped by cached_property
  • Slots are created for @cached_property fields in order to be wrapped by _SlottedCachedProperty

@DavidCEllis DavidCEllis merged commit 4c05709 into main Dec 6, 2025
7 checks passed
@DavidCEllis DavidCEllis deleted the cached-property-alternate branch December 6, 2025 16:13
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