This message was deleted.
# general
s
This message was deleted.
c
not sure, how Union work in this case, you should check the module code
Copy code
Union typing is only needed when you have a statically typed language, as you need to declare that an object can return one of multiple types (in your case an int or str, or in the other example str or NoneType)
it’s support from python 3.5
what is your python version?
h
@creamy-monkey-35142 we use python 3.9.16 for our deploys with pulumi. Here is the sdk code: https://github.com/pulumi/pulumi-aws-native/blob/v0.54.0/sdk/python/pulumi_aws_native/dynamodb/table.py#L19 https://github.com/pulumi/pulumi/blob/v3.59.0/sdk/python/lib/pulumi/runtime/rpc.py#L150 Probably the issue is with defining the key_schema with only the hashkey and not the rangekey in the list.