From dd1f3bc79d9097d7e84bd7d0f4b76dd4fde5d153 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Sun, 22 May 2022 09:47:30 -0400 Subject: [PATCH] style(sqlalchemy): clean up arguments --- ibis/backends/base/sql/alchemy/registry.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ibis/backends/base/sql/alchemy/registry.py b/ibis/backends/base/sql/alchemy/registry.py index 34af082ea2cd..096b4c9ae278 100644 --- a/ibis/backends/base/sql/alchemy/registry.py +++ b/ibis/backends/base/sql/alchemy/registry.py @@ -591,10 +591,10 @@ def _nth_value(t, expr): ops.NTile: _ntile, ops.FirstValue: unary(sa.func.first_value), ops.LastValue: unary(sa.func.last_value), - ops.RowNumber: fixed_arity(lambda: sa.func.row_number(), 0), - ops.DenseRank: unary(lambda arg: sa.func.dense_rank()), - ops.MinRank: unary(lambda arg: sa.func.rank()), - ops.PercentRank: unary(lambda arg: sa.func.percent_rank()), + ops.RowNumber: fixed_arity(sa.func.row_number, 0), + ops.DenseRank: unary(lambda _: sa.func.dense_rank()), + ops.MinRank: unary(lambda _: sa.func.rank()), + ops.PercentRank: unary(lambda _: sa.func.percent_rank()), ops.NthValue: _nth_value, ops.Window: _window, ops.CumulativeOp: _window,