from typing import List
from typing import Any


def stringify_filter_results(header: str, exact_result: List[Any], close_result: List[Any]) -> str:
    """Creates and returns a nice display format string for the results from a `_filter` call"""
    line = '\n' + '---' * 30 + '\n'
    weak_line = '\n' + '-  ' * 30 + '\n'
    if exact_result:
        exact_text = '\n'.join(str(item) for item in (exact_result))
    else:
        exact_text = f'{"< no exact matches >":^80}'
    if close_result:
        close_text = '\n'.join(str(item) for item in (close_result))
    else:
        close_text = f'{"< no close matches >":^80}'
    return line + header + weak_line + exact_text + weak_line + close_text + line