Skip to content

Add caching for simple __init__ functions.#108

Merged
DavidCEllis merged 14 commits into
mainfrom
partial-init-caching
Jun 5, 2026
Merged

Add caching for simple __init__ functions.#108
DavidCEllis merged 14 commits into
mainfrom
partial-init-caching

Conversation

@DavidCEllis

Copy link
Copy Markdown
Owner

For generated __init__ functions that don't include pre/post-init, default factories or non-init defaults, the __init__ functions are now cached based on element number.

This also breaks __init__.py up into __init__.py, constants.py, functions.py and methods.py as it had gotten overly large and was getting annoying to navigate. constants and functions exist partly to avoid circular imports with __init__. All of the method making logic now lives in methods.py.

@DavidCEllis DavidCEllis merged commit 41e442d into main Jun 5, 2026
5 checks passed
@DavidCEllis DavidCEllis deleted the partial-init-caching branch June 6, 2026 10:16
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