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

Support inheriting from slots classes with gc=False #635

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Jan 21, 2024

Previously we prevented setting gc=False when inheriting from any non-Struct type. In reality this is safe to set when inheriting from any non-c-extension class lacking a __dict__.

Fixes #631.

Previously we prevented setting `gc=False` when inheriting from any
non-Struct type. In reality this is safe to set when inheriting from any
non-c-extension class lacking a `__dict__`.
@jcrist jcrist merged commit b08046b into main Jan 21, 2024
8 checks passed
@jcrist jcrist deleted the support-nogc-inherit-slots-classes branch January 21, 2024 16:11
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.

Cannot set gc=False on Generic structs?
1 participant