from typing import Any
from typing import Union


def parseValue(value: Any) -> Union[None, int, float, str]:
    """ parse a string value to None, an int, a float or return it as a string """
    if value == "None":
        return None
    try:
        return int(value)
    except ValueError:
        try:
            return float(value)
        except ValueError:
            return value