def visit_middleware_class(self, middleware_class: MiddlewareClassInfo) -> str:
    'Visit a ErrorHandlerInfo instance. Usually called by `process`.'
    text = '{0}↣ {1.name}'.format(self.tab, middleware_class)
    if self.verbose:
        text += ' ({0.source_info})'.format(middleware_class)
    method_text = self._methods_to_string(middleware_class.methods)
    if (not method_text):
        return text
    return '{}:\n{}'.format(text, method_text)
Visit a ErrorHandlerInfo instance. Usually called by `process`.
def visit_middleware_class(self, middleware_class: MiddlewareClassInfo) -> str:
    
    text = '{0}↣ {1.name}'.format(self.tab, middleware_class)
    if self.verbose:
        text += ' ({0.source_info})'.format(middleware_class)
    method_text = self._methods_to_string(middleware_class.methods)
    if (not method_text):
        return text
    return '{}:\n{}'.format(text, method_text)