Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move gatherer and repr/eq hiding logic into core - various logic bugfixes #14

Merged
merged 18 commits into from
May 30, 2024

Conversation

DavidCEllis
Copy link
Owner

Move more logic out of Prefab and into core.
Fix potential infinite loops in get_ns_annotations.
Simplification of Field and GatheredField generated elements.

Add attribute_gatherer logic to core
Make Field rely on unified_gatherer instead of slot_gatherer.

Metaclass now does the same gathering work as regular classes, but puts all of the detail in __slots__.
Make sure get_annotations always returns a copy.
Rename get_annotations to get_ns_annotations to be clear it's for class namespaces.
* Make GatheredFields a slotclass
* return SlotMakerMeta metaclass to Field again.
* fix some type hints
@DavidCEllis DavidCEllis merged commit 0047d0e into main May 30, 2024
8 checks passed
@DavidCEllis DavidCEllis deleted the simplify_gatherers branch May 30, 2024 18:01
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.

1 participant