Decorator that adds arg to the wrapped function!
Tue Feb 14 2023 15:48:55 GMT+0000 (Coordinated Universal Time)
Saved by @taha #python #decorator
Now the following will be correct: @async_session async def my_func(session): await session.execute(...) No need to import "session" or pass it as an arg when calling my_func!
Comments