File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
metadata-ingestion/src/datahub/api/entities/assertion Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def to_field_values_failure_threshold(self) -> FieldValuesFailThresholdClass:
3838 return FieldValuesFailThresholdClass (
3939 type = (
4040 FieldValuesFailThresholdTypeClass .COUNT
41- if self .type == Literal [ "count" ]
41+ if self .type == "count"
4242 else FieldValuesFailThresholdTypeClass .PERCENTAGE
4343 ),
4444 value = self .value ,
@@ -81,7 +81,7 @@ def get_assertion_info(
8181 excludeNulls = self .exclude_nulls ,
8282 transform = (
8383 FieldTransformClass (type = FieldTransformTypeClass .LENGTH )
84- if self .field_transform == Literal [ "length" ]
84+ if self .field_transform == FieldTransform . LENGTH
8585 else None
8686 ),
8787 ),
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def get_assertion_info(
5858 statement = self .statement ,
5959 changeType = (
6060 AssertionValueChangeType .ABSOLUTE
61- if self .change_type == Literal [ "absolute" ]
61+ if self .change_type == "absolute"
6262 else AssertionValueChangeType .PERCENTAGE
6363 ),
6464 operator = self .operator .operator ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def get_assertion_info(
6464 rowCountChange = RowCountChange (
6565 type = (
6666 AssertionValueChangeType .ABSOLUTE
67- if self .change_type == Literal [ "absolute" ]
67+ if self .change_type == "absolute"
6868 else AssertionValueChangeType .PERCENTAGE
6969 ),
7070 operator = self .operator .operator ,
You can’t perform that action at this time.
0 commit comments