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

require #[pyclass] to be Sync #4566

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davidhewitt
Copy link
Member

For #4265

A brief attempt to add a compile error to require #[pyclass] values to be Sync. I allow this constraint to be opted-out with the existing #[pyclass(unsendable)] option.

Mostly here I've focused on implementing the compile error with a reasonable diagnostic, I think there's a lot of documentation to add too.

@ngoldbaum ngoldbaum mentioned this pull request Sep 20, 2024
3 tasks
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