#NEWLINE# def _detect_family( self , numeric_object ) : #NEWLINE# #INDENT# '\n        This function returns a string description of the type family\n        that the object in question belongs to.  Possible return values\n        are: "exact", "complex", "approximate", "sequence", and "unknown"\n        ' #NEWLINE# if isinstance ( numeric_object , np . ndarray ) : #NEWLINE# #INDENT# return 'ndarray' #NEWLINE# #UNINDENT# if isinstance ( numeric_object , enum . Enum ) : #NEWLINE# #INDENT# return 'enum' #NEWLINE# #UNINDENT# for tp in self . _sequence_typesets : #NEWLINE# #INDENT# if isinstance ( numeric_object , tp ) : #NEWLINE# #INDENT# return 'sequence' #NEWLINE# #UNINDENT# #UNINDENT# for tp in self . _exact_typesets : #NEWLINE# #INDENT# if isinstance ( numeric_object , tp ) : #NEWLINE# #INDENT# return 'exact' #NEWLINE# #UNINDENT# #UNINDENT# for tp in self . _complex_types : #NEWLINE# #INDENT# if isinstance ( numeric_object , tp ) : #NEWLINE# #INDENT# return 'complex' #NEWLINE# #UNINDENT# #UNINDENT# for tp in self . _approx_typesets : #NEWLINE# #INDENT# if isinstance ( numeric_object , tp ) : #NEWLINE# #INDENT# return 'approximate' #NEWLINE# #UNINDENT# #UNINDENT# return 'unknown'