

def register_renderer(self, renderer, default=False):
    '\n        Registers a renderer with the Pushrod resolver (can also be done by passing the renderer to the constructor).\n        '
    if (not (hasattr(renderer, '_is_pushrod_renderer') and renderer._is_pushrod_renderer)):
        raise TypeError('Got passed an invalid renderer')
    for name in renderer.renderer_names:
        self.named_renderers[name] = renderer
    for mime_type in renderer.renderer_mime_types:
        self.mime_type_renderers[mime_type] = renderer

dataset/ETHPy150Open teozkr/Flask-Pushrod/flask_pushrod/resolver.py Pushrod.register_renderer/original