Skip to content

fix compile error for multiple async method arguments#4035

Merged
davidhewitt merged 1 commit intoPyO3:mainfrom
davidhewitt:async-method-args
Apr 2, 2024
Merged

fix compile error for multiple async method arguments#4035
davidhewitt merged 1 commit intoPyO3:mainfrom
davidhewitt:async-method-args

Conversation

@davidhewitt
Copy link
Copy Markdown
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 🤦

Comment thread tests/test_coroutine.rs
}

#[test]
fn test_async_method_receiver_with_other_args() {
Copy link
Copy Markdown
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
@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
Copy Markdown
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
Copy Markdown
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.

3 participants