diff --git a/graphene/utils/decorators.py b/graphene/utils/decorators.py index a478c5f6..09aeb256 100644 --- a/graphene/utils/decorators.py +++ b/graphene/utils/decorators.py @@ -15,7 +15,7 @@ def either(expected): if not any(arg_list): raise TooFewArgs("Too few arguments, must be either of: " + ",".join(expected)) - if all(arg_list): + if all(arg_list) or arg_list.count(True) > 1: raise TooManyArgs("Too many arguments, must be either of: " + ",".join(expected)) return func(*args, **kwargs)