-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output types broken as input types InventoryConfigurationOutputTypeDef, LifecycleRuleOutputTypeDef #254
Comments
Hello! THank you for the report. Looks like this output type is not compatible with the corresponding input type. I will take a look. |
Unfortunately, these types are incompatible. Does rewriting code as new_rule: LifecycleRuleOutputTypeDef = {
'ID': 'rule_name',
'Expiration': {'Days': 1},
'Filter': {'Prefix': 'prefix'},
'NoncurrentVersionExpiration': {'NoncurrentDays': 1},
'AbortIncompleteMultipartUpload': {'DaysAfterInitiation': 1},
'Status': 'Enabled',
} work for you? |
It does not seem to help. We are going to use
Not in the example above but the next line we have is:
And mypy was failing with this error:
|
As far as I understand, before you used For this particular shape input and output definitions are not compatible. So,
|
Closing this issue because current behavior is intended. Let me know if you still have any issues. |
Describe the bug
After upgrading to 1.34.92 (confirmed with 1.34.93) our codebase is getting 2 new mypy errors with:
InventoryConfigurationOutputTypeDef
vsInventoryConfigurationTypeDef
LifecycleRuleOutputTypeDef
vsLifecycleRuleTypeDef
To Reproduce
Steps to reproduce the behavior:
Add code that works with the output as input.
InventoryConfigurationOutputTypeDef, LifecycleRuleOutputTypeDef
boto3-stubs[s3]
mypy
/pyright
on the following code sampleActual output
Expected output
no error
Additional context
Your OS macOS and linux,
boto3-stubs
installation method,boto3
version, etc.Relates to #208
The text was updated successfully, but these errors were encountered: