Skip to content

Commit 1c11f15

Browse files
committed
Fix docstrings
1 parent ab78551 commit 1c11f15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/graphql/type/definition.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1284,15 +1284,15 @@ class GraphQLInputObjectType(GraphQLNamedType):
12841284
12851285
Example::
12861286
1287-
NonNullFloat = GraphQLNonNull(GraphQLFloat())
1287+
NonNullFloat = GraphQLNonNull(GraphQLFloat)
12881288
12891289
class GeoPoint(GraphQLInputObjectType):
12901290
name = 'GeoPoint'
12911291
fields = {
12921292
'lat': GraphQLInputField(NonNullFloat),
12931293
'lon': GraphQLInputField(NonNullFloat),
12941294
'alt': GraphQLInputField(
1295-
GraphQLFloat(), default_value=0)
1295+
GraphQLFloat, default_value=0)
12961296
}
12971297
12981298
The outbound values will be Python dictionaries by default, but you can have them
@@ -1511,7 +1511,7 @@ class GraphQLNonNull(GraphQLWrappingType[GNT_co]):
15111511
class RowType(GraphQLObjectType):
15121512
name = 'Row'
15131513
fields = {
1514-
'id': GraphQLField(GraphQLNonNull(GraphQLString()))
1514+
'id': GraphQLField(GraphQLNonNull(GraphQLString))
15151515
}
15161516
15171517
Note: the enforcement of non-nullability occurs within the executor.

0 commit comments

Comments
 (0)