@classmethod<EOL><INDENT>def construct_from_string(cls, string):<DEDENT>
try:<EOL><INDENT>if string == '<STR_LIT>':<EOL><INDENT>return cls()<EOL><DEDENT>else:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>
attempt to construct this type from a string, raise a TypeError if
it's not possible