Skip to content

Commit

Permalink
Replace INVALID with Undefined (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkimbo committed Feb 27, 2020
1 parent ac98be7 commit 98e10f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphene/types/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
GraphQLObjectType,
GraphQLSchema,
GraphQLString,
INVALID,
Undefined,
)

from ..utils.str_converters import to_camel_case
Expand Down Expand Up @@ -357,7 +357,7 @@ def construct_fields_for_type(self, map_, type_, is_input_type=False):
arg_type,
out_name=arg_name,
description=arg.description,
default_value=INVALID
default_value=Undefined
if isinstance(arg.type, NonNull)
else arg.default_value,
)
Expand Down

0 comments on commit 98e10f0

Please sign in to comment.