def METHOD_NAME(self) -> socket.socket:
    if isinstance(self._address, tuple):
        family = socket.AF_INET
    else:
        family = socket.AF_UNIX
    return socket.socket(family, socket.SOCK_STREAM)