#NEWLINE# def _infer_item_class( self , extracted , config ) : #NEWLINE# #INDENT# if config . iter_item_key : #NEWLINE# #INDENT# keys = [ k for e in extracted . get ( e . iter_item_key ) for k in list ( e . keys ( ) ) ] #NEWLINE# class_name = ( '%sClass' % config . iter_item_key . capitalize ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# keys = list ( extracted . keys ( ) ) #NEWLINE# class_name = 'CustomClass' #NEWLINE# #UNINDENT# if keys : #NEWLINE# #INDENT# return type ( class_name , ( Item , ) , dict ( [ ( k , Field ( ) ) for k in set ( keys ) ] ) )