Skip to content

Commit f4cfd7d

Browse files
committed
Improved package imports
1 parent 256a94b commit f4cfd7d

File tree

2 files changed

+49
-9
lines changed

2 files changed

+49
-9
lines changed

graphene/__init__.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@
44

55
from graphene import signals
66

7-
from graphene.core.schema import (
8-
Schema
9-
)
10-
11-
from graphene.core.classtypes import (
7+
from .core import (
8+
Schema,
129
ObjectType,
1310
InputObjectType,
1411
Interface,
1512
Mutation,
16-
Scalar
17-
)
18-
19-
from graphene.core.types import (
13+
Scalar,
2014
BaseType,
2115
LazyType,
2216
Argument,

graphene/core/__init__.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
from .schema import (
2+
Schema
3+
)
4+
5+
from .classtypes import (
6+
ObjectType,
7+
InputObjectType,
8+
Interface,
9+
Mutation,
10+
Scalar
11+
)
12+
13+
from .types import (
14+
BaseType,
15+
LazyType,
16+
Argument,
17+
Field,
18+
InputField,
19+
String,
20+
Int,
21+
Boolean,
22+
ID,
23+
Float,
24+
List,
25+
NonNull
26+
)
27+
28+
__all__ = [
29+
'Argument',
30+
'String',
31+
'Int',
32+
'Boolean',
33+
'Float',
34+
'ID',
35+
'List',
36+
'NonNull',
37+
'Schema',
38+
'BaseType',
39+
'LazyType',
40+
'ObjectType',
41+
'InputObjectType',
42+
'Interface',
43+
'Mutation',
44+
'Scalar',
45+
'Field',
46+
'InputField']

0 commit comments

Comments
 (0)