Skip to content

Conversation

RedKinda
Copy link

@RedKinda RedKinda commented Sep 8, 2025

PR for issue #5416

This introduces a new #[pyclass] attribute called auto_new, where set_all is required to be used alongside it. It automatically generates a #[new] function for this class, similar to that of the python dataclass. It requires the multiple-pymethods feautre, as it generates its own #[pymethods] block

@RedKinda
Copy link
Author

RedKinda commented Sep 8, 2025

I am not quite sure why the CI failing, I dont see any failure in the logs

@RedKinda RedKinda changed the title Dev/auto new Implement auto_new attribute for #[pyclass] Sep 8, 2025
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