We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looks like, there is something missing in the type definition if null=True. Before 6.0.0 this was not an issue.
null=True
6.0.0
from pynamodb.models import Model from pynamodb.attributes import UnicodeAttribute class Models(Model): class Meta: table_name = "table" hash_key = UnicodeAttribute(hash_key=True) nullable_key = UnicodeAttribute(null=True) model = Models(hash_key="foo", nullable_key="bar") model.save() model.update(actions=[Models.nullable_key.set(None)]) # error: Argument 1 to "set" of "Attribute" has incompatible type "None"; expected "str | Attribute[str] | _Increment | _Decrement | _IfNotExists | _ListAppend" [arg-type]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Looks like, there is something missing in the type definition if
null=True
. Before6.0.0
this was not an issue.The text was updated successfully, but these errors were encountered: