Skip to content

Commit 41f4922

Browse files
committed
Fix grammar in error message
Replicates graphql/graphql-js@2daa0ed
1 parent b000a8b commit 41f4922

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

graphql/type/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def type_map_reducer(map_: TypeMap, type_: GraphQLNamedType = None) -> TypeMap:
232232
if name in map_:
233233
if map_[name] is not type_:
234234
raise TypeError(
235-
"Schema must contain unique named types but contains multiple"
235+
"Schema must contain uniquely named types but contains multiple"
236236
f" types named {name!r}."
237237
)
238238
return map_

tests/type/test_schema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def rejects_a_schema_which_redefines_a_built_in_type():
223223
GraphQLSchema(QueryType)
224224
msg = str(exc_info.value)
225225
assert msg == (
226-
"Schema must contain unique named types"
226+
"Schema must contain uniquely named types"
227227
f" but contains multiple types named 'String'."
228228
)
229229

@@ -237,7 +237,7 @@ def rejects_a_schema_which_defines_an_object_twice():
237237
GraphQLSchema(types=types)
238238
msg = str(exc_info.value)
239239
assert msg == (
240-
"Schema must contain unique named types"
240+
"Schema must contain uniquely named types"
241241
f" but contains multiple types named 'SameName'."
242242
)
243243

@@ -255,7 +255,7 @@ def rejects_a_schema_which_defines_fields_with_conflicting_types():
255255
GraphQLSchema(QueryType)
256256
msg = str(exc_info.value)
257257
assert msg == (
258-
"Schema must contain unique named types"
258+
"Schema must contain uniquely named types"
259259
f" but contains multiple types named 'SameName'."
260260
)
261261

0 commit comments

Comments
 (0)