from typing import Any
from typing import Dict


def vars_with_scalar_fields_only(o: Any) -> Dict[str, Any]:
    """
    Returns a dictionary similar to vars(o), but with only those fields that either have integer
    or floating point value.
    :param o: The object to process.
    :return: A dictionary mapping from field name to value.
    """

    def is_scalar(f: Any) -> bool:
        return isinstance(f, (int, float))

    return {key: value for key, value in vars(o) if is_scalar(value)}