From 20ab65b32f01956f7d53d6ba21931064f1d5683b Mon Sep 17 00:00:00 2001 From: Achal Shah Date: Mon, 12 Jul 2021 09:45:19 -0700 Subject: [PATCH] Stringify WhichOneof to make mypy happy 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