Skip to content

Commit 6495cbf

Browse files
committed
Remove deprecated assert_valid_name & is_valid_name_error
Replicates graphql/graphql-js@6dda669
1 parent 2a45b56 commit 6495cbf

File tree

4 files changed

+0
-55
lines changed

4 files changed

+0
-55
lines changed

docs/modules/utilities.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ Comparators for types:
9494
.. autofunction:: is_type_sub_type_of
9595
.. autofunction:: do_types_overlap
9696

97-
Assert that a string is a valid GraphQL name:
98-
99-
.. autofunction:: assert_valid_name
100-
.. autofunction:: is_valid_name_error
101-
10297
Compare two GraphQLSchemas and detect breaking changes:
10398

10499
.. autofunction:: find_breaking_changes

src/graphql/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,6 @@
212212
is_equal_type,
213213
is_type_sub_type_of,
214214
do_types_overlap,
215-
# Assert a string is a valid GraphQL name.
216-
assert_valid_name,
217-
# Determine if a string is a valid GraphQL name.
218-
is_valid_name_error,
219215
# Compare two GraphQLSchemas and detect breaking changes.
220216
BreakingChange,
221217
BreakingChangeType,
@@ -764,8 +760,6 @@
764760
"is_equal_type",
765761
"is_type_sub_type_of",
766762
"do_types_overlap",
767-
"assert_valid_name",
768-
"is_valid_name_error",
769763
"find_breaking_changes",
770764
"find_dangerous_changes",
771765
"BreakingChange",

src/graphql/utilities/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@
6868
# Comparators for types
6969
from .type_comparators import is_equal_type, is_type_sub_type_of, do_types_overlap
7070

71-
# Assert that a string is a valid GraphQL name.
72-
from .assert_valid_name import assert_valid_name, is_valid_name_error
73-
7471
# Compare two GraphQLSchemas and detect breaking changes.
7572
from .find_breaking_changes import (
7673
BreakingChange,
@@ -89,7 +86,6 @@
8986
"IntrospectionQuery",
9087
"TypeInfo",
9188
"TypeInfoVisitor",
92-
"assert_valid_name",
9389
"ast_from_value",
9490
"ast_to_dict",
9591
"build_ast_schema",
@@ -105,7 +101,6 @@
105101
"get_operation_ast",
106102
"is_equal_type",
107103
"is_type_sub_type_of",
108-
"is_valid_name_error",
109104
"introspection_from_schema",
110105
"lexicographic_sort_schema",
111106
"print_introspection_schema",

src/graphql/utilities/assert_valid_name.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)