Added RuleNameEnum class and a type hint related to it in abstract class

This commit is contained in:
VakarisZ 2021-02-17 16:20:13 +02:00
parent 25704b74c9
commit 8b8c5f9590
2 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,5 @@
from enum import Enum
class RuleNameEnum(Enum):
pass

View File

@ -1,7 +1,8 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from enum import Enum, EnumMeta from enum import Enum
from typing import List from typing import List, Type
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.rule_name_enum import RuleNameEnum
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import FINDINGS, SERVICES, SERVICE_TYPES from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import FINDINGS, SERVICES, SERVICE_TYPES
@ -14,7 +15,7 @@ class AbstractRulePathCreator(ABC):
@property @property
@abstractmethod @abstractmethod
def supported_rules(self) -> EnumMeta: def supported_rules(self) -> Type[RuleNameEnum]:
pass pass
@classmethod @classmethod