mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
Changed name from GrapheneType to GrapheneGraphQLType
This commit is contained in:
parent
31ea09ff30
commit
ad607eb122
|
@ -58,12 +58,12 @@ class ClassTypeMeta(type):
|
|||
return cls
|
||||
|
||||
|
||||
class GrapheneType(object):
|
||||
class GrapheneGraphQLType(object):
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.graphene_type = kwargs.pop('graphene_type')
|
||||
self._name = None
|
||||
self._description = None
|
||||
super(GrapheneType, self).__init__(*args, **kwargs)
|
||||
super(GrapheneGraphQLType, self).__init__(*args, **kwargs)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
@ -82,7 +82,7 @@ class GrapheneType(object):
|
|||
self._description = description
|
||||
|
||||
|
||||
class GrapheneFieldsType(GrapheneType):
|
||||
class GrapheneFieldsType(GrapheneGraphQLType):
|
||||
def __init__(self, *args, **kwargs):
|
||||
self._fields = None
|
||||
self._field_map = None
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import six
|
||||
from graphql.type import GraphQLEnumType, GraphQLEnumValue
|
||||
|
||||
from .definitions import ClassTypeMeta, GrapheneType
|
||||
from .definitions import ClassTypeMeta, GrapheneGraphQLType
|
||||
try:
|
||||
from enum import Enum as PyEnum
|
||||
except ImportError:
|
||||
|
@ -10,7 +10,7 @@ except ImportError:
|
|||
from .proxy import TypeProxy
|
||||
|
||||
|
||||
class GrapheneEnumType(GrapheneType, GraphQLEnumType):
|
||||
class GrapheneEnumType(GrapheneGraphQLType, GraphQLEnumType):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
graphene_type = kwargs.pop('graphene_type')
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import six
|
||||
from graphql import GraphQLScalarType, GraphQLString, GraphQLInt, GraphQLFloat, GraphQLBoolean, GraphQLID
|
||||
|
||||
from .definitions import ClassTypeMeta, GrapheneType
|
||||
from .definitions import ClassTypeMeta, GrapheneGraphQLType
|
||||
from .proxy import TypeProxy
|
||||
|
||||
|
||||
class GrapheneScalarType(GrapheneType, GraphQLScalarType):
|
||||
class GrapheneScalarType(GrapheneGraphQLType, GraphQLScalarType):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
GrapheneType.__init__(self, *args, **kwargs)
|
||||
GrapheneGraphQLType.__init__(self, *args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def default_parse(value):
|
||||
|
|
Loading…
Reference in New Issue
Block a user