Closed filol closed 1 month ago
Thank you for the report. Response shapes usually have full totality. I will try to find a way to check if the field is optional.
Similar situation with DescribeInstancesResultTypeDef
:
DescribeInstancesResultTypeDef = TypedDict(
"DescribeInstancesResultTypeDef",
{
"Reservations": List[ReservationTypeDef],
"NextToken": str,
"ResponseMetadata": ResponseMetadataTypeDef,
},
)
Roughly half of the definitions in types_aiobotocore_ec2.type_defs
which have NextToken
declare it as optional, but I'm guessing it should be optional for all.
The issue has finally been fixed in mypy_boto3_builder 7.24.0
release. I have also released mypy-boto3-cognito-idp 1.34.91
with the fix included. Please update and let me know if it works as expected.
Describe the bug This is the actual definition for ListUserPoolClientsResponseTypeDef. Also I remark writing this issue that
HostId
is also missing in ResponseMetadata but he is required inside the actual typing.But Boto3 doesn't return NextToken if it's the last page. I suggest to change the type from str to
To Reproduce Steps to reproduce the behavior:
Actual output
Log give this output :
Expected output
Additional context Your OS,
boto3-stubs
installation method,boto3
version, etc.