Improved package imports

This commit is contained in:
Syrus Akbary 2015-12-03 20:50:14 -08:00
parent 256a94bc81
commit f4cfd7dc8a
2 changed files with 49 additions and 9 deletions

View File

@ -4,19 +4,13 @@ from graphql.core.type import (
from graphene import signals
from graphene.core.schema import (
Schema
)
from graphene.core.classtypes import (
from .core import (
Schema,
ObjectType,
InputObjectType,
Interface,
Mutation,
Scalar
)
from graphene.core.types import (
Scalar,
BaseType,
LazyType,
Argument,

View File

@ -0,0 +1,46 @@
from .schema import (
Schema
)
from .classtypes import (
ObjectType,
InputObjectType,
Interface,
Mutation,
Scalar
)
from .types import (
BaseType,
LazyType,
Argument,
Field,
InputField,
String,
Int,
Boolean,
ID,
Float,
List,
NonNull
)
__all__ = [
'Argument',
'String',
'Int',
'Boolean',
'Float',
'ID',
'List',
'NonNull',
'Schema',
'BaseType',
'LazyType',
'ObjectType',
'InputObjectType',
'Interface',
'Mutation',
'Scalar',
'Field',
'InputField']