From 0d2179d9d3d67b3928201f6ca879666a6ae6a4e6 Mon Sep 17 00:00:00 2001 From: Achal Shah Date: Mon, 12 Jul 2021 10:34:58 -0700 Subject: [PATCH] Stringify WhichOneof to make mypy happy (#1705) Signed-off-by: Achal Shah --- sdk/python/feast/type_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/feast/type_map.py b/sdk/python/feast/type_map.py index 54d30cbd22..3514a0e7f5 100644 --- a/sdk/python/feast/type_map.py +++ b/sdk/python/feast/type_map.py @@ -128,7 +128,7 @@ def python_type_to_feast_value_type( for item in list_items: if isinstance(item, ProtoValue): current_item_value_type = _proto_str_to_value_type( - item.WhichOneof("val") + str(item.WhichOneof("val")) ) else: # Get the type from the current item, only one level deep