Replies: 1 comment 1 reply
-
I assume you mean something like https://pyo3.rs/v0.25.1/class/call.html?highlight=decorato#example-implementing-a-call-counter? The only difference really is that calling an |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The title might be a bit confusing, but I do have two kinds of questions here (feel free to let me know if they should be separate)
Basically, my first question is, how can I make an async function decorator, and type it appropriately?
Then, the second question is, how can I then take that (or just do the following)
(Would also be curious for that second half, what that would look like in terms of a non-async version.)
Beta Was this translation helpful? Give feedback.
All reactions