def getKeywordArgConstraint(argname, num_posargs=0, previous_kwargs=[]):
    """Return the constraint for kwargs[argname]. The other arguments are
        used to handle mixed positional and keyword arguments. Returns a
        tuple of (accept, constraint)."""
