Skip to content

Commit

Permalink
Black formatting 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
MoessnerFabian(Group) committed Dec 19, 2024
1 parent e36a9da commit a439948
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions logprep/filter/lucene_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand All @@ -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)
Expand All @@ -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("\\", "")
Expand Down

0 comments on commit a439948

Please sign in to comment.