```python
def max_val(listval):
    """
    Finds the maximum numerical value in a heterogeneous list.

    The function filters the list to consider only integer and float types
    for comparison. If no numeric values are found, it returns None.

    Args:
        listval: A list containing elements of various types.

    Returns:
        The maximum numeric value (int or float) in the list, or None
        if the list contains no numbers.
    """
    # Create a new list containing only the integer and float values.
    # Booleans are a subclass of integers, so they are included (True=1, False=0).
    numbers = [item for item in listval if isinstance(item, (int, float))]

    # If the list of numbers is empty, it means no numeric values were found.
    if not numbers:
        return None

    # Otherwise, return the maximum value from the list of numbers.
    return max(numbers)

```