File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
aws_lambda_powertools/utilities/data_classes Expand file tree Collapse file tree 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]]:
106106 return self .get ("NS" )
107107
108108 @property
109- def null_value (self ) -> Optional [ bool ] :
109+ def null_value (self ) -> None :
110110 """An attribute of type Null.
111111
112112 Example:
113113 >>> {"NULL": True}
114114 """
115- item = self .get ("NULL" )
116- return None if item is None else bool (item )
115+ return None
117116
118117 @property
119118 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():
544544 attribute_value = AttributeValue (example_attribute_value )
545545
546546 assert attribute_value .get_type == AttributeValueType .Null
547+ assert attribute_value .null_value is None
547548 assert attribute_value .null_value == attribute_value .get_value
548549
549550
You can’t perform that action at this time.
0 commit comments