File tree 1 file changed +9
-10
lines changed
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
from contextlib import contextmanager
2
2
from typing import cast
3
3
4
- from pytest import raises
5
-
6
4
from graphql import graphql_sync
5
+ from graphql .pyutils import (
6
+ Description ,
7
+ is_description ,
8
+ register_description ,
9
+ unregister_description ,
10
+ )
7
11
from graphql .type import (
8
12
GraphQLArgument ,
9
13
GraphQLDirective ,
10
14
GraphQLEnumValue ,
11
15
GraphQLField ,
12
16
GraphQLInputField ,
13
- GraphQLObjectType ,
14
17
GraphQLNamedType ,
18
+ GraphQLObjectType ,
15
19
GraphQLSchema ,
16
20
GraphQLString ,
17
21
)
18
- from graphql .pyutils import (
19
- Description ,
20
- is_description ,
21
- register_description ,
22
- unregister_description ,
23
- )
24
22
from graphql .utilities import get_introspection_query , print_schema
23
+ from pytest import raises
25
24
26
25
from ..utils import dedent
27
26
@@ -43,7 +42,7 @@ def registered(base: type):
43
42
try :
44
43
yield None
45
44
finally :
46
- unregister_description (LazyString )
45
+ unregister_description (base )
47
46
48
47
49
48
def describe_description ():
You can’t perform that action at this time.
0 commit comments