def first_ipv4(self) -> Optional[AddressInfo]:
        '''The first IPv4 address.'''
        for info in self._address_infos:
            if info.family == socket.AF_INET:
                return info
def first_ipv4 ( self ) -> Optional [ AddressInfo ] : for info in self . _address_infos : if info . family == socket . AF_INET : return info
The first IPv4 address.