diff --git a/logprep/filter/lucene_filter.py b/logprep/filter/lucene_filter.py index 2254c24a2..e8077f6f1 100644 --- a/logprep/filter/lucene_filter.py +++ b/logprep/filter/lucene_filter.py @@ -343,7 +343,6 @@ def _check_key_and_modifier(key, value): return RegExFilterExpression(key[:-1] + key_and_modifier[:-1], value) return None - def _get_filter_expression( self, key: List[str], value ) -> Union[RegExFilterExpression, StringFilterExpression]: @@ -368,7 +367,7 @@ def _get_filter_expression( return StringFilterExpression(key, value) def _get_filter_expression_regex( - self, key: List[str], value + self, key: List[str], value ) -> Union[RegExFilterExpression, StringFilterExpression]: key_and_modifier_check = LuceneTransformer._check_key_and_modifier(key, value) @@ -378,7 +377,6 @@ def _get_filter_expression_regex( value = value.strip("/") return RegExFilterExpression(key, value) - @staticmethod def _create_value_expression(word: luqum.tree) -> Union[Exists, Always]: value = word.value.replace("\\", "")