From a821790966f9556c427315aa405571995284d3b7 Mon Sep 17 00:00:00 2001 From: zsombor-egyed-trax <79918210+zsombor-egyed-trax@users.noreply.github.com> Date: Tue, 31 Aug 2021 17:57:47 +0200 Subject: [PATCH] add some more data types --- pyadomd/_type_code.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyadomd/_type_code.py b/pyadomd/_type_code.py index 6e9998f..dc5bc59 100644 --- a/pyadomd/_type_code.py +++ b/pyadomd/_type_code.py @@ -40,7 +40,11 @@ def _option_type(datatype, data): 'System.Int64': Type_code(partial(_option_type, int), int.__name__), 'System.UInt64': Type_code(partial(_option_type, int), int.__name__), 'System.String': Type_code(partial(_option_type, str), str.__name__), - 'System.Object': Type_code(lambda x: x, 'System.Object') + 'System.Object': Type_code(lambda x: x, 'System.Object'), + 'System.Guid': Type_code(partial(_option_type, str), str.__name__), + 'System.UInt32': Type_code(partial(_option_type, int), int.__name__), + 'System.Int16': Type_code(partial(_option_type, int), int.__name__), + 'System.Int32': Type_code(partial(_option_type, int), int.__name__), } def convert(datatype:str, data:Any, type_map:Dict[str, Type_code]):