def METHOD_NAME(self, *hosts): # -> Self@Validator:
    """Require the host to be one of the provided hosts.
    .. versionadded:: 1.0
    :param hosts:
        Hosts that are allowed.
    :returns:
        The validator instance.
    :rtype:
        Validator
    """
    ...