]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
review comments, fix type hint 12695/head
authorViolet Folino Gallo <48537601+galloviolet@users.noreply.github.com>
Wed, 30 Jul 2025 22:43:17 +0000 (15:43 -0700)
committerViolet Folino Gallo <48537601+galloviolet@users.noreply.github.com>
Wed, 30 Jul 2025 22:43:17 +0000 (15:43 -0700)
doc/build/changelog/unreleased_21/12596.rst [new file with mode: 0644]
lib/sqlalchemy/sql/_elements_constructors.py

diff --git a/doc/build/changelog/unreleased_21/12596.rst b/doc/build/changelog/unreleased_21/12596.rst
new file mode 100644 (file)
index 0000000..aa7339f
--- /dev/null
@@ -0,0 +1,7 @@
+.. change::
+    :tags: bug, sql
+    :tickets: 12596
+
+    Updated the :func:`_sql.over` clause to allow fractional values in
+    :paramref:`_sql.over.range_`. Previously, only integer values
+    were allowed and any other values would lead to a failure.
\ No newline at end of file
index b5f3c745154911b84808dc8a9aaf63d73dd78663..0d63a4bc59dfbac6f0250c86810e73c9b591aaf6 100644 (file)
@@ -1498,7 +1498,7 @@ def over(
     element: FunctionElement[_T],
     partition_by: Optional[_ByArgument] = None,
     order_by: Optional[_ByArgument] = None,
-    range_: Optional[typing_Tuple[Optional[int], Optional[int]]] = None,
+    range_: Optional[typing_Tuple[Optional[Any], Optional[Any]]] = None,
     rows: Optional[typing_Tuple[Optional[int], Optional[int]]] = None,
     groups: Optional[typing_Tuple[Optional[int], Optional[int]]] = None,
 ) -> Over[_T]: