def METHOD_NAME(self, mimetype: str) -> Type[Response]:
    """Return the most appropriate Response class for the given mimetype"""
    if mimetype is None:
        return Response
    if mimetype in self.classes:
        return self.classes[mimetype]
    basetype = f"{mimetype.split('/')[0]}/*"
    return self.classes.get(basetype, Response)