From a4838f4d22056a0888d29108203cf45d583dc25f Mon Sep 17 00:00:00 2001 From: Nigel Small Date: Tue, 31 May 2022 15:23:15 +0100 Subject: [PATCH] Ignore type checking for `agg_value` --- eland/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eland/operations.py b/eland/operations.py index 2ff75f7..f5dd064 100644 --- a/eland/operations.py +++ b/eland/operations.py @@ -746,7 +746,7 @@ class Operations: if pd_agg in {"max", "min", "median", "sum", "mode"}: # 'sum' isn't representable with bool, use int64 if pd_agg == "sum" and field.is_bool: - agg_value = np.int64(agg_value) + agg_value = np.int64(agg_value) # type: ignore else: agg_value = field.np_dtype.type(agg_value)