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

index 6849d258e04166a31804825f1caed1f1355e90f5..e8245bdf8ff494ed4a1b94e2e1e23c92afafee67 100644 (file)
@@ -1438,12 +1438,12 @@ class async_sessionmaker(Generic[_AS]):
 
     @overload
     def __init__(
-        self: async_sessionmaker[AsyncSession],
-        bind: Optional[_AsyncSessionBind] = None,
+        self: "async_sessionmaker[AsyncSession]",
+        bind: Optional[_AsyncSessionBind] = ...,
         *,
-        autoflush: bool = True,
-        expire_on_commit: bool = True,
-        info: Optional[_InfoType] = None,
+        autoflush: bool = ...,
+        expire_on_commit: bool = ...,
+        info: Optional[_InfoType] = ...,
         **kw: Any,
     ):
         ...
@@ -1452,9 +1452,9 @@ class async_sessionmaker(Generic[_AS]):
         self,
         bind: Optional[_AsyncSessionBind],
         class_: Type[_AS],  # type: ignore
-        autoflush: bool = True,
-        expire_on_commit: bool = True,
-        info: Optional[_InfoType] = None,
+        autoflush: bool = ...,
+        expire_on_commit: bool = ...,
+        info: Optional[_InfoType] = ...,
         **kw: Any,
     ):
         ...
@@ -1464,9 +1464,9 @@ class async_sessionmaker(Generic[_AS]):
         bind: Optional[_AsyncSessionBind] = ...,
         *,
         class_: Type[_AS],  # type: ignore
-        autoflush: bool = True,
-        expire_on_commit: bool = True,
-        info: Optional[_InfoType] = None,
+        autoflush: bool = ...,
+        expire_on_commit: bool = ...,
+        info: Optional[_InfoType] = ...,
         **kw: Any,
     ):
         ...