From 30ba7bee0dd3836408c5252a0415d9706b4d5e75 Mon Sep 17 00:00:00 2001 From: Ian Gabaraev <39344857+Ian-Gabaraev@users.noreply.github.com> Date: Mon, 21 Jun 2021 15:18:44 +0300 Subject: [PATCH] Update decorators.py --- graphene/utils/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene/utils/decorators.py b/graphene/utils/decorators.py index 09aeb256..fe6cacd2 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) or arg_list.count(True) > 1: + if arg_list.count(True) > 1: raise TooManyArgs("Too many arguments, must be either of: " + ",".join(expected)) return func(*args, **kwargs)