Am I missing something or is it not possible to decorate async methods with @method? The wrapped method here is not marked async:
https://github.com/altdesktop/python-dbus-next/blob/master/dbus_next/service.py#L90
Should be easy to check, whether fn is a coroutine or not and then either provide an async or normal version of wrapped. Want a PR?
Am I missing something or is it not possible to decorate async methods with
@method
? Thewrapped
method here is not markedasync
: https://github.com/altdesktop/python-dbus-next/blob/master/dbus_next/service.py#L90 Should be easy to check, whetherfn
is a coroutine or not and then either provide an async or normal version ofwrapped
. Want a PR?