From: Yurii Karabas <1998uriyyo@gmail.com> Date: Fri, 1 Dec 2023 09:18:00 +0000 (+0200) Subject: merge with main X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efe338eb985db975467fc3fa16fe04c42962b875;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git merge with main --- efe338eb985db975467fc3fa16fe04c42962b875 diff --cc lib/sqlalchemy/sql/elements.py index f2b779832f,c4e503b3cf..de11f339d0 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@@ -78,9 -78,9 +78,10 @@@ from ..util import HasMemoized_ro_memoi from ..util import TypingOnly from ..util.typing import Literal from ..util.typing import Self +from ..util.typing import Unpack if typing.TYPE_CHECKING: + from ._typing import _ByArgument from ._typing import _ColumnExpressionArgument from ._typing import _ColumnExpressionOrStrLabelArgument from ._typing import _InfoType diff --cc tools/generate_sql_functions.py index 636a4dfcf7,348b334484..716cb54f7e --- a/tools/generate_sql_functions.py +++ b/tools/generate_sql_functions.py @@@ -96,11 -182,14 +182,14 @@@ reveal_type(stmt{count} fn_class.type, TypeEngine ): python_type = fn_class.type.python_type - python_expr = rf"Tuple\[.*{python_type.__name__}\]" + python_expr = rf".*{python_type.__name__}" argspec = inspect.getfullargspec(fn_class) - args = ", ".join( - 'column("x")' for elem in argspec.args[1:] - ) + if fn_class.__name__ == "next_value": + args = "Sequence('x_seq')" + else: + args = ", ".join( + 'column("x")' for elem in argspec.args[1:] + ) count += 1 buf.write(