File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1389,15 +1389,15 @@ class GraphQLInputObjectType(GraphQLNamedType):
13891389
13901390 Example::
13911391
1392- NonNullFloat = GraphQLNonNull(GraphQLFloat() )
1392+ NonNullFloat = GraphQLNonNull(GraphQLFloat)
13931393
13941394 class GeoPoint(GraphQLInputObjectType):
13951395 name = 'GeoPoint'
13961396 fields = {
13971397 'lat': GraphQLInputField(NonNullFloat),
13981398 'lon': GraphQLInputField(NonNullFloat),
13991399 'alt': GraphQLInputField(
1400- GraphQLFloat() , default_value=0)
1400+ GraphQLFloat, default_value=0)
14011401 }
14021402
14031403 The outbound values will be Python dictionaries by default, but you can have them
@@ -1651,7 +1651,7 @@ class GraphQLNonNull(GraphQLWrappingType[GNT], Generic[GNT]):
16511651 class RowType(GraphQLObjectType):
16521652 name = 'Row'
16531653 fields = {
1654- 'id': GraphQLField(GraphQLNonNull(GraphQLString() ))
1654+ 'id': GraphQLField(GraphQLNonNull(GraphQLString))
16551655 }
16561656
16571657 Note: the enforcement of non-nullability occurs within the executor.
You can’t perform that action at this time.
0 commit comments