island: Change `pass` to `...` for abstract properties in

cc/services/attack/technique_reports/

See https://stackoverflow.com/a/58321197/10629482.
This commit is contained in:
Shreya Malviya 2021-09-22 19:19:35 +05:30
parent b0b0f515d0
commit f730e75cc8
2 changed files with 8 additions and 8 deletions

View File

@ -25,7 +25,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta):
""" """
:return: Message that will be displayed in case attack technique was not scanned. :return: Message that will be displayed in case attack technique was not scanned.
""" """
pass ...
@property @property
@abc.abstractmethod @abc.abstractmethod
@ -33,7 +33,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta):
""" """
:return: Message that will be displayed in case attack technique was scanned. :return: Message that will be displayed in case attack technique was scanned.
""" """
pass ...
@property @property
@abc.abstractmethod @abc.abstractmethod
@ -41,7 +41,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta):
""" """
:return: Message that will be displayed in case attack technique was used by the scanner. :return: Message that will be displayed in case attack technique was used by the scanner.
""" """
pass ...
@property @property
@abc.abstractmethod @abc.abstractmethod
@ -49,7 +49,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta):
""" """
:return: Id of attack technique. E.g. T1003 :return: Id of attack technique. E.g. T1003
""" """
pass ...
@property @property
@abc.abstractmethod @abc.abstractmethod
@ -59,7 +59,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta):
(examples: 1. "Trap Command" PBA (technique T1154) is Linux only. (examples: 1. "Trap Command" PBA (technique T1154) is Linux only.
2. "Job Scheduling" PBA has different techniques for Windows and Linux. 2. "Job Scheduling" PBA has different techniques for Windows and Linux.
""" """
pass ...
@staticmethod @staticmethod
@abstractstatic @abstractstatic
@ -67,7 +67,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta):
""" """
:return: Report data aggregated from the database. :return: Report data aggregated from the database.
""" """
pass ...
@classmethod @classmethod
def technique_status(cls): def technique_status(cls):
@ -124,7 +124,7 @@ class AttackTechnique(object, metaclass=abc.ABCMeta):
@staticmethod @staticmethod
def _get_unscanned_msg_with_reasons(unscanned_msg): def _get_unscanned_msg_with_reasons(unscanned_msg):
pass ...
@classmethod @classmethod
def technique_title(cls): def technique_title(cls):

View File

@ -15,7 +15,7 @@ class PostBreachTechnique(AttackTechnique, metaclass=abc.ABCMeta):
""" """
:return: names of post breach action :return: names of post breach action
""" """
pass ...
@classmethod @classmethod
def get_pba_query(cls, post_breach_action_names): def get_pba_query(cls, post_breach_action_names):