class_: Type[_AS]
- @overload
- def __init__(
- self,
- bind: Optional[_AsyncSessionBind],
- class_: Type[_AS],
- autoflush: bool = ...,
- expire_on_commit: bool = ...,
- info: Optional[_InfoType] = ...,
- **kw: Any,
- ):
- ...
@overload
def __init__(
self,
**kw: Any,
):
...
+
@overload
def __init__(
self: "async_sessionmaker[AsyncSession]",
**kw: Any,
):
...
+
def __init__(
self,
bind: Optional[_AsyncSessionBind] = None,
+ *,
class_: Type[_AS] = AsyncSession, # type: ignore
autoflush: bool = True,
expire_on_commit: bool = True,