You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I'm not entirely sure if we could make the two begin behave more similarly wrt returned object. @zzzeek can't we return an async transaction from the engine.begin?
AsyncConnection.begin()
returnsAsyncTransaction
, like one would expect:sqlalchemy2-stubs/sqlalchemy-stubs/ext/asyncio/engine.pyi
Line 50 in e6ae4cc
however,
AsyncEngine.begin()
returns_trans_ctx
:sqlalchemy2-stubs/sqlalchemy-stubs/ext/asyncio/engine.pyi
Line 116 in e6ae4cc
This leads to following errors, when user declares argument type to
AsyncTransaction
.The text was updated successfully, but these errors were encountered: