@@ -29,19 +29,21 @@ def __init__(
2929 ):
3030 assert not (
3131 type_def and introspection
32- ), "Can't provide introspection type definition at the same time"
32+ ), "Cannot provide introspection type definition at the same time. "
3333 if transport and fetch_schema_from_transport :
3434 assert (
3535 not schema
36- ), "Can't fetch the schema from transport if is already provided"
36+ ), "Cannot fetch the schema from transport if is already provided"
3737 introspection = transport .execute (parse (introspection_query )).data
3838 if introspection :
39- assert not schema , "Can't provide introspection and schema at the same time"
39+ assert (
40+ not schema
41+ ), "Cannot provide introspection and schema at the same time."
4042 schema = build_client_schema (introspection )
4143 elif type_def :
4244 assert (
4345 not schema
44- ), "Can't provide Type definition and schema at the same time"
46+ ), "Cannot provide type definition and schema at the same time. "
4547 type_def_ast = parse (type_def )
4648 schema = build_ast_schema (type_def_ast )
4749 elif schema and not transport :
@@ -61,7 +63,7 @@ def __init__(
6163 def validate (self , document ):
6264 if not self .schema :
6365 raise Exception (
64- "Cannot validate locally the document, you need to pass a schema."
66+ "Cannot validate the document locally , you need to pass a schema."
6567 )
6668 validation_errors = validate (self .schema , document )
6769 if validation_errors :
0 commit comments