@@ -54,9 +54,9 @@ class Complex2:
5454 "fromInt" : GraphQLArgument (GraphQLInt ),
5555 "fromString" : GraphQLArgument (GraphQLString ),
5656 },
57- resolve = lambda _source , _info , ** args : args . get ( "fromInt" )
58- or args .get ("fromString" )
59- or args . get ( "fromEnum" ),
57+ resolve = lambda _source , _info , ** args : (
58+ args . get ( "fromInt" ) or args .get ("fromString" ) or args . get ( "fromEnum " )
59+ ),
6060 ),
6161 "colorInt" : GraphQLField (
6262 GraphQLInt ,
@@ -75,16 +75,17 @@ class Complex2:
7575 "provideGoodValue" : GraphQLArgument (GraphQLBoolean ),
7676 "provideBadValue" : GraphQLArgument (GraphQLBoolean ),
7777 },
78- resolve = lambda _source , _info , ** args :
79- # Note: this is one of the references of the internal values
80- # which ComplexEnum allows.
81- complex2
82- if args .get ("provideGoodValue" )
83- # Note: similar object, but not the same *reference* as
84- # complex2 above. Enum internal values require object equality.
85- else Complex2 ()
86- if args .get ("provideBadValue" )
87- else args .get ("fromEnum" ),
78+ resolve = lambda _source , _info , ** args : (
79+ # Note: this is one of the references of the internal values
80+ # which ComplexEnum allows.
81+ complex2
82+ if args .get ("provideGoodValue" )
83+ # Note: similar object, but not the same *reference* as
84+ # complex2 above. Enum internal values require object equality.
85+ else Complex2 ()
86+ if args .get ("provideBadValue" )
87+ else args .get ("fromEnum" )
88+ ),
8889 ),
8990 "thunkValuesString" : GraphQLField (
9091 GraphQLString ,
0 commit comments