#NEWLINE# @ staticmethod #NEWLINE# def key_type( value ) : #NEWLINE# #INDENT# key_types = { #NEWLINE# #INDENT# bool : '-bool' , #NEWLINE# float : '-float' , #NEWLINE# int : '-int' , #NEWLINE# #UNINDENT# } #NEWLINE# return next ( ( t for ( t , k ) in key_types . items ( ) if isinstance ( value , t ) ) , '-string' )