beartype / plum

Multiple dispatch in Python
https://beartype.github.io/plum
MIT License
497 stars 22 forks source link

Support decorator syntax for `add_conversion_method` #136

Closed nstarman closed 1 month ago

nstarman commented 2 months ago

It would be very convenient to be able to do

@add_conversion_method(type_from=...., type_to=...)
def conversion_function(obj):
    ...
wesselb commented 1 month ago

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!