Changed name from GrapheneType to GrapheneGraphQLType

This commit is contained in:
Syrus Akbary 2016-06-04 19:19:08 -07:00
parent 31ea09ff30
commit ad607eb122
3 changed files with 8 additions and 8 deletions

View File

@ -58,12 +58,12 @@ class ClassTypeMeta(type):
return cls return cls
class GrapheneType(object): class GrapheneGraphQLType(object):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
self.graphene_type = kwargs.pop('graphene_type') self.graphene_type = kwargs.pop('graphene_type')
self._name = None self._name = None
self._description = None self._description = None
super(GrapheneType, self).__init__(*args, **kwargs) super(GrapheneGraphQLType, self).__init__(*args, **kwargs)
@property @property
def name(self): def name(self):
@ -82,7 +82,7 @@ class GrapheneType(object):
self._description = description self._description = description
class GrapheneFieldsType(GrapheneType): class GrapheneFieldsType(GrapheneGraphQLType):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
self._fields = None self._fields = None
self._field_map = None self._field_map = None

View File

@ -1,7 +1,7 @@
import six import six
from graphql.type import GraphQLEnumType, GraphQLEnumValue from graphql.type import GraphQLEnumType, GraphQLEnumValue
from .definitions import ClassTypeMeta, GrapheneType from .definitions import ClassTypeMeta, GrapheneGraphQLType
try: try:
from enum import Enum as PyEnum from enum import Enum as PyEnum
except ImportError: except ImportError:
@ -10,7 +10,7 @@ except ImportError:
from .proxy import TypeProxy from .proxy import TypeProxy
class GrapheneEnumType(GrapheneType, GraphQLEnumType): class GrapheneEnumType(GrapheneGraphQLType, GraphQLEnumType):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
graphene_type = kwargs.pop('graphene_type') graphene_type = kwargs.pop('graphene_type')

View File

@ -1,14 +1,14 @@
import six import six
from graphql import GraphQLScalarType, GraphQLString, GraphQLInt, GraphQLFloat, GraphQLBoolean, GraphQLID from graphql import GraphQLScalarType, GraphQLString, GraphQLInt, GraphQLFloat, GraphQLBoolean, GraphQLID
from .definitions import ClassTypeMeta, GrapheneType from .definitions import ClassTypeMeta, GrapheneGraphQLType
from .proxy import TypeProxy from .proxy import TypeProxy
class GrapheneScalarType(GrapheneType, GraphQLScalarType): class GrapheneScalarType(GrapheneGraphQLType, GraphQLScalarType):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
GrapheneType.__init__(self, *args, **kwargs) GrapheneGraphQLType.__init__(self, *args, **kwargs)
@staticmethod @staticmethod
def default_parse(value): def default_parse(value):