Skip to content

Commit

Permalink
Fixed docker_image_analyze_task.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Nov 20, 2024
1 parent 2a397a3 commit 97e8340
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import abc
from pathlib import Path
from typing import Dict, Type
from typing import Dict, Type, Optional

import docker
import git
Expand Down Expand Up @@ -137,8 +137,7 @@ def values_are_subclass_of_baseclass(self, task_classes) -> bool:
return all(issubclass(value, DockerAnalyzeImageTask)
for value in task_classes.values())

@abc.abstractmethod
def requires_tasks(self) -> Dict[str, Type["DockerAnalyzeImageTask"]]:
def requires_tasks(self) -> Optional[Dict[str, Type["DockerAnalyzeImageTask"]]]:
pass

def run_task(self):
Expand Down

0 comments on commit 97e8340

Please sign in to comment.