]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Run tools
authorYurii Karabas <1998uriyyo@gmail.com>
Sat, 16 Dec 2023 15:03:49 +0000 (17:03 +0200)
committerYurii Karabas <1998uriyyo@gmail.com>
Sat, 16 Dec 2023 15:03:49 +0000 (17:03 +0200)
lib/sqlalchemy/ext/asyncio/scoping.py
lib/sqlalchemy/ext/asyncio/session.py

index c24fec9c93eb5110aad8a344051c32f50c3be4a4..53112b545d203b52bfa9482484ce6c74f557d9c9 100644 (file)
@@ -15,6 +15,7 @@ from typing import Iterator
 from typing import Optional
 from typing import overload
 from typing import Sequence
+from typing import Tuple
 from typing import Type
 from typing import TYPE_CHECKING
 from typing import TypeVar
@@ -30,7 +31,6 @@ from ...util import create_proxy_methods
 from ...util import ScopedRegistry
 from ...util import warn
 from ...util import warn_deprecated
-from ...util.typing import TupleAny
 from ...util.typing import TypeVarTuple
 from ...util.typing import Unpack
 
@@ -565,7 +565,7 @@ class async_scoped_session(Generic[_AS]):
         bind_arguments: Optional[_BindArguments] = None,
         _parent_execute_state: Optional[Any] = None,
         _add_event: Optional[Any] = None,
-    ) -> Result[Unpack[TupleAny]]:
+    ) -> Result[Unpack[Tuple[Any, ...]]]:
         ...
 
     async def execute(
@@ -576,7 +576,7 @@ class async_scoped_session(Generic[_AS]):
         execution_options: OrmExecuteOptionsParameter = util.EMPTY_DICT,
         bind_arguments: Optional[_BindArguments] = None,
         **kw: Any,
-    ) -> Result[Unpack[TupleAny]]:
+    ) -> Result[Unpack[Tuple[Any, ...]]]:
         r"""Execute a statement and return a buffered
         :class:`_engine.Result` object.
 
@@ -1593,10 +1593,10 @@ class async_scoped_session(Generic[_AS]):
     def identity_key(
         cls,
         class_: Optional[Type[Any]] = None,
-        ident: Union[Any, TupleAny] = None,
+        ident: Union[Any, Tuple[Any, ...]] = None,
         *,
         instance: Optional[Any] = None,
-        row: Optional[Union[Row[Unpack[TupleAny]], RowMapping]] = None,
+        row: Optional[Union[Row[Unpack[Tuple[Any, ...]]], RowMapping]] = None,
         identity_token: Optional[Any] = None,
     ) -> _IdentityKeyType[Any]:
         r"""Return an identity key.
index c9f2da46c3ce3ec9136f569d8914c1acc10c317d..aa2fcbe4196bf35a2f12b16402fb5008fb59f463 100644 (file)
@@ -38,6 +38,7 @@ from ...orm import Session
 from ...orm import SessionTransaction
 from ...orm import state as _instance_state
 from ...util.concurrency import greenlet_spawn
+from ...util.typing import TupleAny
 from ...util.typing import TypeVarTuple
 from ...util.typing import Unpack
 
@@ -1593,7 +1594,7 @@ class AsyncSession(ReversibleProxy[Session]):
         ident: Union[Any, Tuple[Any, ...]] = None,
         *,
         instance: Optional[Any] = None,
-        row: Optional[Union[Row[Unpack[Tuple[Any, ...]]], RowMapping]] = None,
+        row: Optional[Union[Row[Unpack[TupleAny]], RowMapping]] = None,
         identity_token: Optional[Any] = None,
     ) -> _IdentityKeyType[Any]:
         r"""Return an identity key.