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

pyclass #[new]: allow using custom error type #1319

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

davidhewitt
Copy link
Member

Similar to #1118 - in that PR we missed out allowing a different result type for #[new]. This PR fixes that.

(Came up in a real-world use case for someone I was speaking with earlier today.)

@davidhewitt davidhewitt force-pushed the pyclass-new-custom-error branch from fdd5e49 to fa8c93c Compare December 14, 2020 13:43
Copy link
Member

@kngwyu kngwyu left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@kngwyu kngwyu merged commit b444f98 into PyO3:master Dec 14, 2020
@davidhewitt davidhewitt deleted the pyclass-new-custom-error branch December 24, 2021 02:07
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.

2 participants