Adds abc.ABCMeta for base smart-type classes

Base classes that shouldn't be instantiated directly
should be marked as abstract

Change-Id: Ie26e20f3c60e5e6beab3d093e82ae29195ce4d95
This commit is contained in:
Stan Lagun 2016-02-10 19:01:15 +03:00
parent 19dfa2f4bc
commit d36f6924e6

View File

@ -25,16 +25,19 @@ from yaql.language import utils
from yaql import yaql_interface
@six.add_metaclass(abc.ABCMeta)
class HiddenParameterType(object):
# noinspection PyMethodMayBeStatic,PyUnusedLocal
def check(self, value, context, engine, *args, **kwargs):
return True
@six.add_metaclass(abc.ABCMeta)
class LazyParameterType(object):
pass
@six.add_metaclass(abc.ABCMeta)
class SmartType(object):
def __init__(self, nullable):
self.nullable = nullable