We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd15f6e commit 6d6e89eCopy full SHA for 6d6e89e
graphql/utilities/find_breaking_changes.py
@@ -3,6 +3,7 @@
3
4
from ..error import INVALID
5
from ..language import DirectiveLocation
6
+from ..pyutils import inspect
7
from ..type import (
8
GraphQLArgument,
9
GraphQLDirective,
@@ -285,7 +286,9 @@ def type_kind_name(type_: GraphQLNamedType) -> str:
285
286
return "an Enum type"
287
if is_input_object_type(type_):
288
return "an Input type"
- raise TypeError(f"Unknown type {type_.__class__.__name__}")
289
+
290
+ # Not reachable. All possible output types have been considered.
291
+ raise TypeError(f"Unexpected type {inspect(type)}") # pragma: no cover
292
293
294
def find_fields_that_changed_type_on_object_or_interface_types(
0 commit comments