Skip to content

Commit

Permalink
Re-factor ABC meta
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiscab committed Dec 14, 2018
1 parent a7df8f0 commit a14df58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion luigi/metrics.py
@@ -1,6 +1,7 @@
import abc

from enum import Enum
from luigi import six


class MetricsCollectors(Enum):
Expand All @@ -19,7 +20,8 @@ def get(cls, which):
raise ValueError("MetricsCollectors value ' {0} ' isn't supported", which)


class MetricsCollector(abc.ABCMeta):
@six.add_metaclass(abc.ABCMeta)
class MetricsCollector(object):
"""Dummy MetricsCollecter base class that can be replace by tool specific
implementation.
"""
Expand Down

0 comments on commit a14df58

Please sign in to comment.