youtype / botocore-stubs

Type annotations and code completion for botocore package
https://youtype.github.io/mypy_boto3_builder/
MIT License
3 stars 3 forks source link

Mypy -> TypedDict "_ClientErrorResponseTypeDef" has no key "CancellationReasons" [typeddict-item] #1

Closed ArtemSliusarenko closed 1 year ago

ArtemSliusarenko commented 1 year ago

Why is _ClientErrorResponseTypeDef not include CancellationReasons?

vemel commented 1 year ago

THank you for the report!

As I see, CI failed to find this inconsistency. I will update the stubs ASAP.

vemel commented 1 year ago

Looks like it is specific to dynamodb errors only. I will add an optional key.

vemel commented 1 year ago

Added. WIll be included in botocore-stubs 1.29.70 release. Please test it and let me know if it works as it should.

ArtemSliusarenko commented 1 year ago

Thank you for the timely response. Will definitely test the release and get back to you.

vemel commented 1 year ago

Unfortunately, these inconsistencies cannot be found by CI, because these models only exist in botocore schemas, not in Python code. So, please keep reporting if you find any other issues.

ArtemSliusarenko commented 1 year ago

This solves our issue. Thanks a lot.