(s: str)
Convert string numbers to int, leaving strings as is.
Convert string numbers to int, leaving strings as is.
Convert string numbers to int leaving strings as is .
def parse_num_to_int(s: str) -> Union[int, str]:
    """Convert string numbers to int, leaving strings as is."""
    try:
        return int(s)
    except ValueError:
        return s
def parse_num_to_int ( s : str ) -> Union [ int , str ] : try : return int ( s ) except ValueError : return s