#NEWLINE# @ classmethod #NEWLINE# def serialize( cls , val , protocol_version ) : #NEWLINE# #INDENT# if ( not protocol_version . subtypes ) : #NEWLINE# #INDENT# raise NotImplementedError ( ( "can't serialize unparameterized %s" % cls . typename ) ) #NEWLINE# #UNINDENT# return cls . serialize_safe ( val , protocol_version )