Skip to content

Commit 3819199

Browse files
committed
Fix docstrings
1 parent 86577d6 commit 3819199

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/graphql/type/definition.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)