code: def _next_class(cls):
          
          return next(
              class_
              for class_ in cls.__mro__
              if not issubclass(class_, Multi)
          )
docs: Multi-subclasses should use the parent class