File tree 2 files changed +3
-3
lines changed
aws_lambda_powertools/utilities/data_classes
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,14 +106,13 @@ def ns_value(self) -> Optional[List[str]]:
106
106
return self .get ("NS" )
107
107
108
108
@property
109
- def null_value (self ) -> Optional [ bool ] :
109
+ def null_value (self ) -> None :
110
110
"""An attribute of type Null.
111
111
112
112
Example:
113
113
>>> {"NULL": True}
114
114
"""
115
- item = self .get ("NULL" )
116
- return None if item is None else bool (item )
115
+ return None
117
116
118
117
@property
119
118
def s_value (self ) -> Optional [str ]:
Original file line number Diff line number Diff line change @@ -544,6 +544,7 @@ def test_dynamo_attribute_value_null_value():
544
544
attribute_value = AttributeValue (example_attribute_value )
545
545
546
546
assert attribute_value .get_type == AttributeValueType .Null
547
+ assert attribute_value .null_value is None
547
548
assert attribute_value .null_value == attribute_value .get_value
548
549
549
550
You can’t perform that action at this time.
0 commit comments