]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update session.py
authorSam Bull <aa6bs0@sambull.org>
Sat, 19 Nov 2022 21:25:06 +0000 (21:25 +0000)
committerGitHub <noreply@github.com>
Sat, 19 Nov 2022 21:25:06 +0000 (21:25 +0000)
lib/sqlalchemy/ext/asyncio/session.py

index 5c0b4ee9c18517df9a91620e776c53b7b108d5c5..ebfbc9ce22159339872f824e978971e1d834d971 100644 (file)
@@ -1436,17 +1436,6 @@ class async_sessionmaker(Generic[_AS]):
 
     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,
@@ -1459,6 +1448,7 @@ class async_sessionmaker(Generic[_AS]):
         **kw: Any,
     ):
         ...
+
     @overload
     def __init__(
         self: "async_sessionmaker[AsyncSession]",
@@ -1470,9 +1460,11 @@ class async_sessionmaker(Generic[_AS]):
         **kw: Any,
     ):
         ...
+
     def __init__(
         self,
         bind: Optional[_AsyncSessionBind] = None,
+        *,
         class_: Type[_AS] = AsyncSession,  # type: ignore
         autoflush: bool = True,
         expire_on_commit: bool = True,