Skip to content

Commit

Permalink
Fix a typo in a deprecation warning
Browse files Browse the repository at this point in the history
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:```
  • Loading branch information
wbwlkr authored Jul 26, 2018
1 parent 02605b1 commit d1de4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql/execution/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit d1de4b0

Please sign in to comment.