Skip to content

Commit

Permalink
Add 'Optional' import to {{ cookiecutter.backend_package_name }}.py
Browse files Browse the repository at this point in the history
adding 'Optional' import to avoid import errors
  • Loading branch information
dvas0004 authored Dec 5, 2023
1 parent 8274430 commit 36b603b
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 36b603b

Please sign in to comment.