def _int_or_none(string: str) ->(int or None):
    """Returns None iff coordinate is special "~"
    character or else the respective integer value.
    """
    if string == '~':
        return None
    return int(string)
