Skip to content

Commit

Permalink
Merge pull request #9 from zsombor-egyed-trax/patch-1
Browse files Browse the repository at this point in the history
add some more data types
  • Loading branch information
S-C-O-U-T authored Aug 31, 2021
2 parents c9e159b + a821790 commit 61d252c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyadomd/_type_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand Down

0 comments on commit 61d252c

Please sign in to comment.