Skip to content

Commit b82ed70

Browse files
committed
fix mypy
1 parent 4df5cce commit b82ed70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bigframes/core/compile/ibis_compiler/scalar_op_registry.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ def isin_op_impl(x: ibis_types.Value, op: ops.IsInOp):
978978

979979
@scalar_op_compiler.register_unary_op(ops.ToDatetimeOp, pass_op=True)
980980
def to_datetime_op_impl(x: ibis_types.Value, op: ops.ToDatetimeOp):
981-
if x.type() in (ibis_dtypes.str, ibis_dtypes.Timestamp("UTC")):
981+
if x.type() in (ibis_dtypes.str, ibis_dtypes.Timestamp("UTC")): # type: ignore
982982
return x.try_cast(ibis_dtypes.Timestamp(None)) # type: ignore
983983
else:
984984
# Numerical inputs.
@@ -1001,7 +1001,8 @@ def to_timestamp_op_impl(x: ibis_types.Value, op: ops.ToTimestampOp):
10011001
if op.format
10021002
else timestamp(x)
10031003
)
1004-
elif x.type() == ibis_dtypes.Timestamp(None): # Datetime type
1004+
elif x.type() == ibis_dtypes.Timestamp(None): # type: ignore
1005+
10051006
return timestamp(x)
10061007
else:
10071008
# Numerical inputs.

0 commit comments

Comments
 (0)