@classmethod<EOL><INDENT>def loads(cls, string):<DEDENT>
parts = (int(part) for part in string.split('<STR_LIT:->'))<EOL>return cls(*parts)<EOL>
Load a date from a string in a record.

        This can also be used to validate a date.

        Examples:
            >>> PartialDate.loads('1686-06')
            PartialDate(year=1686, month=6, day=None)
            >>> PartialDate.loads('1686-42')
            Traceback (most recent call last):
            ...
            ValueError: month must be in 1..12