def _next_in_mro(cls):
 next_in_mro = object
 for (i, c) in enumerate(cls.__mro__[:(-1)]):
  if (isinstance(c, GenericMeta) and (_gorg(c) is Generic)):
   next_in_mro = cls.__mro__[(i + 1)]
 return next_in_mro

def _next_in_mro ( cls ) : next_in_mro = object for ( i , c ) in enumerate ( cls . __mro__ [ : ( - 1 ) ] ) : if ( isinstance ( c , GenericMeta ) and ( _gorg ( c ) is Generic ) ) : next_in_mro = cls . __mro__ [ ( i + 1 ) ] return next_in_mro
helper for generic .