Skip to content

Commit

Permalink
Merge pull request #8 from dvas0004/patch-1
Browse files Browse the repository at this point in the history
Add 'Optional' import to {{ cookiecutter.backend_package_name }}.py
  • Loading branch information
thomaspatzke authored Dec 12, 2023
2 parents 8274430 + 36b603b commit 19f0e70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from sigma.pipelines.{{ cookiecutter.backend_package_name }} import # TODO: add pipeline imports or delete this line
import sigma
import re
from typing import ClassVar, Dict, Tuple, Pattern, List, Any
from typing import ClassVar, Dict, Tuple, Pattern, List, Any, Optional

class {{ cookiecutter.backend_class_name }}(TextQueryBackend):
"""{{ cookiecutter.target_name }} backend."""
Expand Down Expand Up @@ -162,4 +162,4 @@ def finalize_output_{{ format }}(self, queries: List[str]) -> Any:
# - list of dict: serialize each item as JSON and output all separated by newlines.
return "\n".join(queries)
{% endfor %}
{% endif %}
{% endif %}

0 comments on commit 19f0e70

Please sign in to comment.