to appease mypy, otherwise it complains that typeargs is not a member
variable.
Signed-off-by: Kefu Chai <kchai@redhat.com>
set any per-instance validation parameters here
from kwargs (fixed string sets, integer ranges, etc)
"""
- pass
+ self.typeargs = None
def valid(self, s, partial=False):
"""
'name/type' description for use in command format help messages.
"""
a = ''
- if hasattr(self, 'typeargs'):
+ if self.typeargs is not None:
a = self.typeargs
return '{0}(\'{1}\')'.format(self.__class__.__name__, a)