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

Fix compile error when trying to use static slot methods, fixes: #3039 #3055

Merged
merged 2 commits into from
Mar 23, 2023

Conversation

willstott101
Copy link
Contributor

@willstott101 willstott101 commented Mar 18, 2023

Whilst having static slot methods is of dubious value in the first place, there's little reason not to support it by bringing the different function call macros more in-line with each other.

I had no idea which test file to use so I just made a new one... test_methods.rs has no slots in and the test files that do use slots seem to be specific to their protocol. Let me know if you'd like the test somewhere else.

Thanks!

@willstott101 willstott101 changed the title Fix compile error when trying to use static slot methods (fixes: #3039) Fix compile error when trying to use static slot methods, fixes: #3039 Mar 18, 2023
Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Thanks, this looks correct to me, will include it in 0.18.2

bors r+

@davidhewitt davidhewitt linked an issue Mar 23, 2023 that may be closed by this pull request
@bors
Copy link
Contributor

bors bot commented Mar 23, 2023

Build succeeded:

@bors bors bot merged commit 28814f2 into PyO3:main Mar 23, 2023
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 create slot (__len__) methods with staticmethod annotation
3 participants