File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 11
11
Interface ,
12
12
Mutation ,
13
13
Scalar ,
14
- BaseType ,
14
+ InstanceType ,
15
15
LazyType ,
16
16
Argument ,
17
17
Field ,
51
51
'NonNull' ,
52
52
'signals' ,
53
53
'Schema' ,
54
- 'BaseType ' ,
54
+ 'InstanceType ' ,
55
55
'LazyType' ,
56
56
'ObjectType' ,
57
57
'InputObjectType' ,
Original file line number Diff line number Diff line change 11
11
)
12
12
13
13
from .types import (
14
- BaseType ,
14
+ InstanceType ,
15
15
LazyType ,
16
16
Argument ,
17
17
Field ,
35
35
'List' ,
36
36
'NonNull' ,
37
37
'Schema' ,
38
- 'BaseType ' ,
38
+ 'InstanceType ' ,
39
39
'LazyType' ,
40
40
'ObjectType' ,
41
41
'InputObjectType' ,
Original file line number Diff line number Diff line change 11
11
from graphene import signals
12
12
13
13
from .classtypes .base import ClassType
14
- from .types .base import BaseType
14
+ from .types .base import InstanceType
15
15
16
16
17
17
class GraphQLSchema (_GraphQLSchema ):
@@ -42,7 +42,7 @@ def T(self, _type):
42
42
if not _type :
43
43
return
44
44
is_classtype = inspect .isclass (_type ) and issubclass (_type , ClassType )
45
- is_instancetype = isinstance (_type , BaseType )
45
+ is_instancetype = isinstance (_type , InstanceType )
46
46
if is_classtype or is_instancetype :
47
47
if _type not in self ._types :
48
48
internal_type = _type .internal_type (self )
Original file line number Diff line number Diff line change 1
- from .base import BaseType , LazyType , OrderedType
1
+ from .base import InstanceType , LazyType , OrderedType
2
2
from .argument import Argument , ArgumentsGroup , to_arguments
3
3
from .definitions import List , NonNull
4
4
# Compatibility import
8
8
from .field import Field , InputField
9
9
10
10
__all__ = [
11
- 'BaseType ' ,
11
+ 'InstanceType ' ,
12
12
'LazyType' ,
13
13
'OrderedType' ,
14
14
'Argument' ,
Original file line number Diff line number Diff line change 5
5
from graphql .core .type import GraphQLArgument
6
6
7
7
from ...utils import ProxySnakeDict , to_camel_case
8
- from .base import ArgumentType , BaseType , OrderedType
8
+ from .base import ArgumentType , InstanceType , OrderedType
9
9
10
10
11
11
class Argument (OrderedType ):
@@ -27,7 +27,7 @@ def __repr__(self):
27
27
return self .name
28
28
29
29
30
- class ArgumentsGroup (BaseType ):
30
+ class ArgumentsGroup (InstanceType ):
31
31
32
32
def __init__ (self , * args , ** kwargs ):
33
33
arguments = to_arguments (* args , ** kwargs )
Original file line number Diff line number Diff line change 3
3
import six
4
4
5
5
6
- class BaseType (object ):
6
+ class InstanceType (object ):
7
7
8
8
@classmethod
9
9
def internal_type (cls , schema ):
10
10
return getattr (cls , 'T' , None )
11
11
12
12
13
- class MountType (BaseType ):
13
+ class MountType (InstanceType ):
14
14
parent = None
15
15
16
16
def mount (self , cls ):
You can’t perform that action at this time.
0 commit comments