Skip to content

Commit 384ae78

Browse files
committed
Update GraphQL-core from 3.1 to 3.2 (#85)
1 parent 476edf3 commit 384ae78

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

graphql_server/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from typing import Any, Callable, Collection, Dict, List, Optional, Type, Union
1313

1414
from graphql.error import GraphQLError
15-
from graphql.error import format_error as format_error_default
1615
from graphql.execution import ExecutionResult, execute
1716
from graphql.language import OperationType, parse
1817
from graphql.pyutils import AwaitableOrValue
@@ -55,6 +54,11 @@
5554
# The public helper functions
5655

5756

57+
def format_error_default(error: GraphQLError) -> Dict:
58+
"""The default function for converting GraphQLError to a dictionary."""
59+
return error.formatted
60+
61+
5862
def run_http_query(
5963
schema: GraphQLSchema,
6064
request_method: str,

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from re import search
22
from setuptools import setup, find_packages
33

4-
install_requires = ["graphql-core>=3.1.0,<4", "typing-extensions>=3.7.4,<4"]
4+
install_requires = ["graphql-core>=3.2,<3.3", "typing-extensions>=4,<5"]
55

66
tests_requires = [
77
"pytest>=5.4,<5.5",

0 commit comments

Comments
 (0)