from typing import Any


def filterAll(d: dict, func: Any) -> dict:
    """Filters the provided dictionary using the passed function

    Parameters:
        d (dict): a dictionary
        func (any): a function that returns a new value for the passed value

    Returns:
        result (dict): the filtered dictionary
    """
    for i in d:
        d[i] = func(d[i])

    return d