Skip to content

feat: attr_type argument to Attribute.is_type - #1294

Open
KO1231 wants to merge 1 commit into
pynamodb:masterfrom
KO1231:update-attribute-is_type
Open

feat: attr_type argument to Attribute.is_type#1294
KO1231 wants to merge 1 commit into
pynamodb:masterfrom
KO1231:update-attribute-is_type

Conversation

@KO1231

@KO1231 KO1231 commented Nov 27, 2025

Copy link
Copy Markdown

This PR adds attr_type to make it possible to check the type of an Attribute in DynamoDB within a Conditional Expression.

It defaults to None to not break the existing behavior.

@KO1231

KO1231 commented Nov 27, 2025

Copy link
Copy Markdown
Author

In the AWS documentation example, it is used in the Conditional Expression when performing a delete-item operation, and it can also be used for null checks.

When checking to see if data is null, in addition to using attribute_not_exists, we must also verify whether the attribute is set to null by this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant