From d1de4b05982770455ca41e4de9edd73023b7b869 Mon Sep 17 00:00:00 2001 From: WebWalker <31214542+wbwlkr@users.noreply.github.com> Date: Thu, 26 Jul 2018 16:01:30 +0200 Subject: [PATCH] Fix a typo in a deprecation warning The deprecation warning says : ```"variable_values has been deprecated. Please use values=... instead.",``` But, the key argument written here should be `variables` and not `values`, as it is written above at line 85 : ```if variables is None and "variable_values" in options:``` --- graphql/execution/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphql/execution/executor.py b/graphql/execution/executor.py index 7e49fdf8..1b5e884e 100644 --- a/graphql/execution/executor.py +++ b/graphql/execution/executor.py @@ -84,7 +84,7 @@ def execute( context = options["context_value"] if variables is None and "variable_values" in options: warnings.warn( - "variable_values has been deprecated. Please use values=... instead.", + "variable_values has been deprecated. Please use variables=... instead.", category=DeprecationWarning, stacklevel=2, )