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

Support decorator syntax for add_conversion_method #136

Closed
nstarman opened this issue Mar 28, 2024 · 1 comment
Closed

Support decorator syntax for add_conversion_method #136

nstarman opened this issue Mar 28, 2024 · 1 comment

Comments

@nstarman
Copy link
Contributor

It would be very convenient to be able to do

@add_conversion_method(type_from=...., type_to=...)
def conversion_function(obj):
    ...
@wesselb
Copy link
Member

wesselb commented Apr 20, 2024

Hey @nstarman! I believe this is what your PR contributed, right? :) I'll therefore close this issue.

If you meant something else, please reopen the issue!

@wesselb wesselb closed this as completed Apr 20, 2024
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

No branches or pull requests

2 participants