From a2a0ab1cdec3567dcad46c2000337707777aa0ca Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Wed, 13 Jun 2018 13:04:01 +0200 Subject: CSIT-1110: Prepare for migrating the new detection + Do not declare BitCountingClassifier.classify() as class method. + Make BitCountingGroupList subclass of list. + Inherit from abstract classes whenever possible. + Drop unneeded imports. + Add module docstrings and class docstrings anywhere. + Add TODOs hinting at possible improvements. Change-Id: Iccfff5c0e7be0607d6cfa74314083fcfe5a4d7d9 Signed-off-by: Vratko Polak --- resources/tools/presentation/new/jumpavg/AbstractGroupMetadata.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'resources/tools/presentation/new/jumpavg/AbstractGroupMetadata.py') diff --git a/resources/tools/presentation/new/jumpavg/AbstractGroupMetadata.py b/resources/tools/presentation/new/jumpavg/AbstractGroupMetadata.py index 6084db5a1a..3235dbd485 100644 --- a/resources/tools/presentation/new/jumpavg/AbstractGroupMetadata.py +++ b/resources/tools/presentation/new/jumpavg/AbstractGroupMetadata.py @@ -11,10 +11,15 @@ # See the License for the specific language governing permissions and # limitations under the License. +"""Module holding AbstractGroupMetadata class.""" + from abc import ABCMeta, abstractmethod class AbstractGroupMetadata(object): + """Abstract classdefining API for metadata. + + At this level, only __str__() and __repr() methods are required.""" __metaclass__ = ABCMeta -- cgit 1.2.3-korg