Skip to content

Conversation

@davidhewitt
Copy link
Member

Closes #694

Now that we have had declarative modules for some time, and they have been shown to work well, I think we are ready to deprecate the #[pyfn] attribute which is an old variant of pyfunction which worked inside imperative #[pymodule] functions.

Copy link
Contributor

@Icxolu Icxolu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me! Do we need a UI test to make sure the deprecation is correctly emitted?

@davidhewitt
Copy link
Member Author

Good idea, will add one, probably tomorrow 👍

@Icxolu Icxolu added this pull request to the merge queue Sep 4, 2025
Merged via the queue into PyO3:main with commit ddb9b4d Sep 4, 2025
43 of 44 checks passed
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.

Unify #[pyfunction] and #[pyfn]

2 participants