def clean_semver(cls, version_spec):
        return re.sub(r"([<>=~])\s+?v?", "\\1", version_spec, re.IGNORECASE)
def deserialize(self, value):
        """Cast raw string to appropriate type."""
        return decode(value)