()
| 38 | |
| 39 | |
| 40 | async def async_main() -> None: |
| 41 | fac = async_session_factory(async_engine) |
| 42 | |
| 43 | async with fac() as sess: |
| 44 | assert_type(sess, MyAsyncSession) |
| 45 | |
| 46 | async with fac.begin() as sess: |
| 47 | assert_type(sess, MyAsyncSession) |
| 48 | |
| 49 | scoped_fac = async_scoped_session_factory(async_engine) |
| 50 | |
| 51 | sess = scoped_fac() |
| 52 | |
| 53 | assert_type(sess, MyAsyncSession) |
| 54 | |
| 55 | |
| 56 | engine = create_engine("...") |
nothing calls this directly
no test coverage detected