From c78ff81f3a9f0b778468551b0da2993bd1f95b77 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Sat, 10 Sep 2016 22:17:13 -0700 Subject: [PATCH] Make Mutation class visible in graphene root package --- graphene/__init__.py | 2 ++ graphene/types/__init__.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/graphene/__init__.py b/graphene/__init__.py index c1dcf0fe..089d4765 100644 --- a/graphene/__init__.py +++ b/graphene/__init__.py @@ -21,6 +21,7 @@ if not __SETUP__: ObjectType, InputObjectType, Interface, + Mutation, Field, InputField, Schema, @@ -46,6 +47,7 @@ if not __SETUP__: 'ObjectType', 'InputObjectType', 'Interface', + 'Mutation', 'Field', 'InputField', 'Schema', diff --git a/graphene/types/__init__.py b/graphene/types/__init__.py index b4d1ea55..c7411ff9 100644 --- a/graphene/types/__init__.py +++ b/graphene/types/__init__.py @@ -3,6 +3,7 @@ from .objecttype import ObjectType from .abstracttype import AbstractType from .interface import Interface +from .mutation import Mutation from .scalars import Scalar, String, ID, Int, Float, Boolean from .schema import Schema from .structures import List, NonNull @@ -13,11 +14,13 @@ from .argument import Argument from .inputobjecttype import InputObjectType from .dynamic import Dynamic + __all__ = [ 'AbstractType', 'ObjectType', 'InputObjectType', 'Interface', + 'Mutation', 'Enum', 'Field', 'InputField',