File tree Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
import re
2
2
from graphql_relay import to_global_id
3
3
4
- from graphql . pyutils import dedent
4
+ from graphene . tests . utils import dedent
5
5
6
6
from ...types import ObjectType , Schema , String
7
7
from ..node import Node , is_node
Original file line number Diff line number Diff line change 1
1
from graphql import graphql_sync
2
- from graphql .pyutils import dedent
2
+
3
+ from graphene .tests .utils import dedent
3
4
4
5
from ...types import Interface , ObjectType , Schema
5
6
from ...types .scalars import Int , String
Original file line number Diff line number Diff line change
1
+ from textwrap import dedent as _dedent
2
+
3
+
4
+ def dedent (text : str ) -> str :
5
+ """Fix indentation of given text by removing leading spaces and tabs.
6
+ Also removes leading newlines and trailing spaces and tabs, but keeps trailing
7
+ newlines.
8
+ """
9
+ return _dedent (text .lstrip ("\n " ).rstrip (" \t " ))
Original file line number Diff line number Diff line change
1
+ from graphql .type import GraphQLObjectType , GraphQLSchema
1
2
from pytest import raises
2
3
3
- from graphql .type import GraphQLObjectType , GraphQLSchema
4
- from graphql .pyutils import dedent
4
+ from graphene .tests .utils import dedent
5
5
6
6
from ..field import Field
7
7
from ..objecttype import ObjectType
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ def run_tests(self):
82
82
keywords = "api graphql protocol rest relay graphene" ,
83
83
packages = find_packages (exclude = ["examples*" ]),
84
84
install_requires = [
85
- "graphql-core>=3.1.1 ,<4" ,
85
+ "graphql-core>=3.1.2 ,<4" ,
86
86
"graphql-relay>=3.0,<4" ,
87
87
"aniso8601>=8,<9" ,
88
88
],
You can’t perform that action at this time.
0 commit comments