@@ -415,11 +415,11 @@ def assert_scalar_type(type_: Any) -> GraphQLScalarType:
415
415
class GraphQLField :
416
416
"""Definition of a GraphQL field"""
417
417
418
+ description : Optional [str ]
418
419
type : "GraphQLOutputType"
419
420
args : GraphQLArgumentMap
420
421
resolve : Optional ["GraphQLFieldResolver" ]
421
422
subscribe : Optional ["GraphQLFieldResolver" ]
422
- description : Optional [str ]
423
423
deprecation_reason : Optional [str ]
424
424
ast_node : Optional [FieldDefinitionNode ]
425
425
@@ -490,11 +490,11 @@ def __eq__(self, other):
490
490
491
491
def to_kwargs (self ) -> Dict [str , Any ]:
492
492
return dict (
493
+ description = self .description ,
493
494
type_ = self .type ,
494
495
args = self .args .copy () if self .args else None ,
495
496
resolve = self .resolve ,
496
497
subscribe = self .subscribe ,
497
- description = self .description ,
498
498
deprecation_reason = self .deprecation_reason ,
499
499
ast_node = self .ast_node ,
500
500
)
@@ -550,9 +550,9 @@ class GraphQLResolveInfo(NamedTuple):
550
550
class GraphQLArgument :
551
551
"""Definition of a GraphQL argument"""
552
552
553
+ description : Optional [str ]
553
554
type : "GraphQLInputType"
554
555
default_value : Any
555
- description : Optional [str ]
556
556
out_name : Optional [str ] # for transforming names (extension of GraphQL.js)
557
557
ast_node : Optional [InputValueDefinitionNode ]
558
558
@@ -589,9 +589,9 @@ def __eq__(self, other):
589
589
590
590
def to_kwargs (self ) -> Dict [str , Any ]:
591
591
return dict (
592
+ description = self .description ,
592
593
type_ = self .type ,
593
594
default_value = self .default_value ,
594
- description = self .description ,
595
595
out_name = self .out_name ,
596
596
ast_node = self .ast_node ,
597
597
)
0 commit comments