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:
parent
19dfa2f4bc
commit
d36f6924e6
@ -25,16 +25,19 @@ from yaql.language import utils
|
|||||||
from yaql import yaql_interface
|
from yaql import yaql_interface
|
||||||
|
|
||||||
|
|
||||||
|
@six.add_metaclass(abc.ABCMeta)
|
||||||
class HiddenParameterType(object):
|
class HiddenParameterType(object):
|
||||||
# noinspection PyMethodMayBeStatic,PyUnusedLocal
|
# noinspection PyMethodMayBeStatic,PyUnusedLocal
|
||||||
def check(self, value, context, engine, *args, **kwargs):
|
def check(self, value, context, engine, *args, **kwargs):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
@six.add_metaclass(abc.ABCMeta)
|
||||||
class LazyParameterType(object):
|
class LazyParameterType(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@six.add_metaclass(abc.ABCMeta)
|
||||||
class SmartType(object):
|
class SmartType(object):
|
||||||
def __init__(self, nullable):
|
def __init__(self, nullable):
|
||||||
self.nullable = nullable
|
self.nullable = nullable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user