-
Notifications
You must be signed in to change notification settings - Fork 636
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
Change AttributeValue sequences from optional to nonoptional #1855
Change AttributeValue sequences from optional to nonoptional #1855
Conversation
New changes will ensure that mypy users will be alerted when trying to add None to an AttributeValue array, without altering the current code that may continue to accept None.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good, please update the branch and add a Changed
header to the changelog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve the changelog conflict and we can get this PR merged, thanks!
Description
Per attribute specifications,
None
values should be discouraged in AttributeValues, but Python cannot actually preventNone
values. Thus, the new changes will ensure that mypy users will be alerted when trying to add None to an AttributeValue array, without altering the current code that may continue to accept None.Fixes issue #1738
Type of change
This is a simple bug fix that will help mypy users conform with specifications.
How Has This Been Tested?
Running the following test suites returned a clean report:
Does This PR Require a Contrib Repo Change?
Checklist: