Skip to content

Commit a3aa902

Browse files
committed
Add missing exports for GraphQLSyntaxError and located_error
Replicates graphql/graphql-js@a9e87ce
1 parent cbbe36a commit a3aa902

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

graphql/__init__.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@
165165
from .language import (
166166
Source,
167167
get_location,
168+
# Lex
169+
Lexer,
168170
# Parse
169171
parse,
170172
parse_value,
@@ -193,7 +195,6 @@
193195
is_type_system_extension_node,
194196
is_type_extension_node,
195197
# Types
196-
Lexer,
197198
SourceLocation,
198199
# AST nodes
199200
Location,
@@ -306,7 +307,14 @@
306307
)
307308

308309
# Create, format, and print GraphQL errors.
309-
from .error import GraphQLError, format_error, print_error, INVALID
310+
from .error import (
311+
GraphQLError,
312+
GraphQLSyntaxError,
313+
located_error,
314+
format_error,
315+
print_error,
316+
INVALID,
317+
)
310318

311319
# Utilities for operating on GraphQL type schema and parsed sources.
312320
from .utilities import (
@@ -480,6 +488,7 @@
480488
"GraphQLTypeResolver",
481489
"Source",
482490
"get_location",
491+
"Lexer",
483492
"parse",
484493
"parse_value",
485494
"parse_type",
@@ -503,7 +512,6 @@
503512
"is_type_definition_node",
504513
"is_type_system_extension_node",
505514
"is_type_extension_node",
506-
"Lexer",
507515
"SourceLocation",
508516
"Location",
509517
"Token",
@@ -601,6 +609,8 @@
601609
"VariablesAreInputTypesRule",
602610
"VariablesInAllowedPositionRule",
603611
"GraphQLError",
612+
"GraphQLSyntaxError",
613+
"located_error",
604614
"format_error",
605615
"print_error",
606616
"INVALID",

0 commit comments

Comments
 (0)