From 4b212502b14e92a52a09d3c8b67fa828a84c6c8f Mon Sep 17 00:00:00 2001 From: Pierre Massat Date: Fri, 3 Jan 2025 14:48:54 -0500 Subject: [PATCH] Fix typing --- snuba/web/rpc/v1/endpoint_get_traces.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snuba/web/rpc/v1/endpoint_get_traces.py b/snuba/web/rpc/v1/endpoint_get_traces.py index 464778d6a3..e60a8b8da7 100644 --- a/snuba/web/rpc/v1/endpoint_get_traces.py +++ b/snuba/web/rpc/v1/endpoint_get_traces.py @@ -69,7 +69,10 @@ AttributeKey.Type.TYPE_STRING, ), } -_TYPES_TO_CLICKHOUSE: dict[AttributeKey.Type.ValueType, tuple[str, Callable]] = { +_TYPES_TO_CLICKHOUSE: dict[ + AttributeKey.Type.ValueType, + tuple[str, Callable[[Any], AttributeValue]], +] = { AttributeKey.Type.TYPE_STRING: ( "String", lambda x: AttributeValue(val_str=str(x)),