def METHOD_NAME(self, filepath):
    """ Raises an AssertionError if mypy raises any error.
    Parameters
    ----------
    filepath : pathlib.Path
        The path to the file to run mypy on.
    Returns
    -------
    None
    Raises
    ------
    AssertionError
        If my generates any error
    """
    normal_report, error_report, exit_status = run_mypy(filepath)
    if exit_status != 0:
        s = "\n{}\n{}".format(str(filepath), normal_report)
        raise AssertionError(s)