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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compile error for multiple async method arguments #4035

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

davidhewitt
Copy link
Member

fixes #4034

I missed in review that the ; was only being applied once at the end of the #evaluate_arg expansion.

While at it I tidied this implementation up a bit further. I probably should have reviewed #4015 better; it's been a long week 馃う

@@ -245,39 +245,6 @@ fn coroutine_panic() {
})
}

#[test]
fn test_async_method_receiver_with_other_args() {
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved the test down as the ordering in the file made more sense to me the other way around.

@davidhewitt davidhewitt added this pull request to the merge queue Apr 2, 2024
Merged via the queue into PyO3:main with commit a4aea23 Apr 2, 2024
43 checks passed
@davidhewitt davidhewitt deleted the async-method-args branch April 2, 2024 18:21
@alex alex mentioned this pull request Apr 2, 2024
@reswqa
Copy link
Contributor

reswqa commented Apr 3, 2024

Oops, sorry for the trouble. Thanks for the fix, that is the first time to touch Procedural macros for me. 馃檱

@davidhewitt
Copy link
Member Author

Not a problem at all. I've made the same mistake before with separators and really should have noticed it in review!

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.

Unable to use async functions with multiple arguments in #[pymethods]
3 participants