File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from contextlib import contextmanager
22from typing import cast
33
4- from pytest import raises
5-
64from graphql import graphql_sync
5+ from graphql .pyutils import (
6+ Description ,
7+ is_description ,
8+ register_description ,
9+ unregister_description ,
10+ )
711from graphql .type import (
812 GraphQLArgument ,
913 GraphQLDirective ,
1014 GraphQLEnumValue ,
1115 GraphQLField ,
1216 GraphQLInputField ,
13- GraphQLObjectType ,
1417 GraphQLNamedType ,
18+ GraphQLObjectType ,
1519 GraphQLSchema ,
1620 GraphQLString ,
1721)
18- from graphql .pyutils import (
19- Description ,
20- is_description ,
21- register_description ,
22- unregister_description ,
23- )
2422from graphql .utilities import get_introspection_query , print_schema
23+ from pytest import raises
2524
2625from ..utils import dedent
2726
@@ -43,7 +42,7 @@ def registered(base: type):
4342 try :
4443 yield None
4544 finally :
46- unregister_description (LazyString )
45+ unregister_description (base )
4746
4847
4948def describe_description ():
You can’t perform that action at this time.
0 commit comments