def _register_adapter(value, key):
 if ((not isinstance(value, (type(None), int, float, six.string_types, bytes, numpy.ndarray))) and (key != 'resumed_from')):
  sqlite3.register_adapter(type(value), adapt_obj)

def _register_adapter ( value , key ) : if ( ( not isinstance ( value , ( type ( None ) , int , float , six . string_types , bytes , numpy . ndarray ) ) ) and ( key != 'resumed_from' ) ) : sqlite3 . register_adapter ( type ( value ) , adapt_obj )
register an adapter if the type of value is unknown .