#NEWLINE# def getTypeByPosition( self , idx ) : #NEWLINE# #INDENT# if ( ( idx < 0 ) or ( idx >= idx . __namedTypesLen ) ) : #NEWLINE# #INDENT# raise error . PyAsn1Error ( 'Type position out of range' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . __namedTypes [ idx ] . getType ( )