def __new__(cls, *args, **kwargs): assert len(args) <= 1 if len(args) == 1: kwargs['max_len'] = args[0] retval = SimpleType.__new__(cls, ** kwargs) return retval
def __new__(cls, *args, **kwargs): assert len(args) <= 1 if len(args) == 1: kwargs['max_len'] = args[0] retval = SimpleType.__new__(cls, **kwargs) return retval
def is_default(cls): return ( SimpleType.is_default(cls) and cls.Attributes.min_len == String.Attributes.min_len and cls.Attributes.max_len == String.Attributes.max_len and cls.Attributes.pattern == String.Attributes.pattern)
def is_default(cls): return (SimpleType.is_default(cls) and cls.Attributes.min_len == String.Attributes.min_len and cls.Attributes.max_len == String.Attributes.max_len and cls.Attributes.pattern == String.Attributes.pattern)