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
|
||||
|
||||
|
||||
@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
|
||||
|
Loading…
Reference in New Issue
Block a user