forked from p15670423/monkey
Added RuleNameEnum class and a type hint related to it in abstract class
This commit is contained in:
parent
25704b74c9
commit
8b8c5f9590
|
@ -0,0 +1,5 @@
|
|||
from enum import Enum
|
||||
|
||||
|
||||
class RuleNameEnum(Enum):
|
||||
pass
|
|
@ -1,7 +1,8 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from enum import Enum, EnumMeta
|
||||
from typing import List
|
||||
from enum import Enum
|
||||
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
|
||||
|
||||
|
||||
|
@ -14,7 +15,7 @@ class AbstractRulePathCreator(ABC):
|
|||
|
||||
@property
|
||||
@abstractmethod
|
||||
def supported_rules(self) -> EnumMeta:
|
||||
def supported_rules(self) -> Type[RuleNameEnum]:
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in New Issue