Skip to content

Commit 83448bf

Browse files
committed
style: fix line length in visitTimeShiftExpr and visitTimeIndexExpr signatures
https://claude.ai/code/session_01So7yDQ3KiPj8oDa4xYnhUK
1 parent af6000e commit 83448bf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/gems/expression/parsing/parse_expression.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,18 @@ def visitTimeShift(self, ctx: ExprParser.TimeShiftContext) -> ExpressionNode:
149149
return shifted_expr
150150
return shifted_expr.shift(time_shift)
151151

152-
def visitTimeShiftExpr(self, ctx: ExprParser.TimeShiftExprContext) -> ExpressionNode:
152+
def visitTimeShiftExpr(
153+
self, ctx: ExprParser.TimeShiftExprContext
154+
) -> ExpressionNode:
153155
shifted_expr = ctx.expr().accept(self) # type: ignore
154156
time_shift = ctx.shift().accept(self) # type: ignore
155157
if expressions_equal(time_shift, literal(0)):
156158
return shifted_expr
157159
return shifted_expr.shift(time_shift)
158160

159-
def visitTimeIndexExpr(self, ctx: ExprParser.TimeIndexExprContext) -> ExpressionNode:
161+
def visitTimeIndexExpr(
162+
self, ctx: ExprParser.TimeIndexExprContext
163+
) -> ExpressionNode:
160164
expr = ctx.expr(0).accept(self) # type: ignore
161165
eval_time = ctx.expr(1).accept(self) # type: ignore
162166
return expr.eval(eval_time)

0 commit comments

Comments
 (0)