'Parse a string as a value for the given key.'

@classmethod
def _parse(cls, key, string):

    if (not isinstance(string, six.string_types)):
        raise TypeError(u'_parse()    argument    must    be    a    string')
    return cls._type(key).parse(string)
