Skip to content

Commit aabce60

Browse files
committed
Fixes after review
1 parent c97647e commit aabce60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gql/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import asyncio
22
import warnings
3-
from typing import Any, AsyncGenerator, Dict, Generator, Optional, Union, cast
3+
from typing import Any, AsyncGenerator, Dict, Generator, Optional, Union
44

55
from graphql import (
66
DocumentNode,
@@ -31,7 +31,7 @@ def __init__(
3131
):
3232
assert not (
3333
type_def and introspection
34-
), "Cannot provide introspection type definition at the same time."
34+
), "Cannot provide introspection and type definition at the same time."
3535

3636
if type_def:
3737
assert (
@@ -51,7 +51,7 @@ def __init__(
5151

5252
if isinstance(schema, str):
5353
type_def_ast = parse(schema)
54-
schema = cast(GraphQLSchema, build_ast_schema(type_def_ast))
54+
schema = build_ast_schema(type_def_ast)
5555

5656
if transport and fetch_schema_from_transport:
5757
assert (

0 commit comments

Comments
 (0)