Skip to content

Commit

Permalink
B807: Fixup Python annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
svnscha committed Nov 29, 2023
1 parent baae832 commit a8fbaab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigma/backends/uberagent/uberagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ def get_mitre_annotation_from_tag(tag):
return None


def ua_annotation(version: Version, tags: list[str], author: str) -> str | None:
def ua_annotation(version: Version, tags: List[str], author: str) -> Optional[str]:
mitre_annotation_objects = []
for tag in tags:
mitre_annotation = get_mitre_annotation_from_tag(tag)
if mitre_annotation is not None:
mitre_annotation_objects.append(mitre_annotation)

result = dict()
result: dict = {}

if len(mitre_annotation_objects) > 0:
result['mitre_attack'] = mitre_annotation_objects
Expand Down

0 comments on commit a8fbaab

Please sign in to comment.