@@ -117,19 +117,19 @@ def connection_adapter(cls, edges, pageInfo):
117
117
118
118
119
119
class IterableConnectionField (Field ):
120
- def __init__ (self , type , * args , ** kwargs ):
120
+ def __init__ (self , type_ , * args , ** kwargs ):
121
121
kwargs .setdefault ("before" , String ())
122
122
kwargs .setdefault ("after" , String ())
123
123
kwargs .setdefault ("first" , Int ())
124
124
kwargs .setdefault ("last" , Int ())
125
- super (IterableConnectionField , self ).__init__ (type , * args , ** kwargs )
125
+ super (IterableConnectionField , self ).__init__ (type_ , * args , ** kwargs )
126
126
127
127
@property
128
128
def type (self ):
129
- type = super (IterableConnectionField , self ).type
130
- connection_type = type
131
- if isinstance (type , NonNull ):
132
- connection_type = type .of_type
129
+ type_ = super (IterableConnectionField , self ).type
130
+ connection_type = type_
131
+ if isinstance (type_ , NonNull ):
132
+ connection_type = type_ .of_type
133
133
134
134
if is_node (connection_type ):
135
135
raise Exception (
@@ -140,7 +140,7 @@ def type(self):
140
140
assert issubclass (
141
141
connection_type , Connection
142
142
), f'{ self .__class__ .__name__ } type has to be a subclass of Connection. Received "{ connection_type } ".'
143
- return type
143
+ return type_
144
144
145
145
@classmethod
146
146
def resolve_connection (cls , connection_type , args , resolved ):
0 commit comments