[v2] Add support for None values in list parsing by adev-code · Pull Request #10110 · aws/aws-cli

@adev-code

When services like RDS Data API return lists with null values
(e.g. longValues: [123, null, 456]), _handle_list() passes
None to type parsers like int(), causing:

  TypeError: int() argument must be a string, a bytes-like
  object or a real number, not 'NoneType'

Add null checking in _handle_list() to preserve None values
instead of attempting to parse them. Treats all lists as
sparse.