def __init__()

in spectator/writer/udp_writer.py [0:0]


    def __init__(self, location: str, address: Tuple[str, int]) -> None:
        super().__init__()
        self._logger.debug("initialize UdpWriter to %s", location)
        self._address = address

        try:
            if type(ip_address(self._address[0])) is IPv6Address:
                self._family = socket.AF_INET6
            else:
                self._family = socket.AF_INET
        except ValueError:
            # anything that does not appear to be an IPv4 or IPv6 address (i.e. hostnames)
            self._family = socket.AF_INET