def t_to_p(self, var_t):
if var_t.type == "<STR_LIT:n>":<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>if var_t.type == "<STR_LIT:c>":<EOL><INDENT>return self.c_to_p(var_t)<EOL><DEDENT>raise HGVSInvalidVariantError("<STR_LIT>" +<EOL>str(var_t))<EOL>
Return a protein variant, or "non-coding" for non-coding variant types

        CAUTION: Unlike other x_to_y methods that always return
        SequenceVariant instances, this method returns a string when
        the variant type is ``n``.  This is intended as a convenience,
        particularly when looping over ``relevant_transcripts``,
        projecting with ``g_to_t``, then desiring a protein
        representation for coding transcripts.