@@ -476,33 +476,33 @@ def parse_value_literal(parser, is_const):
476476
477477 elif token .kind == TokenKind .INT :
478478 advance (parser )
479- return ast .IntValue ( # type: ignore
480- value = token .value , loc = loc (parser , token .start )
479+ return ast .IntValue (
480+ value = token .value , loc = loc (parser , token .start ) # type: ignore
481481 )
482482
483483 elif token .kind == TokenKind .FLOAT :
484484 advance (parser )
485- return ast .FloatValue ( # type: ignore
486- value = token .value , loc = loc (parser , token .start )
485+ return ast .FloatValue (
486+ value = token .value , loc = loc (parser , token .start ) # type: ignore
487487 )
488488
489489 elif token .kind == TokenKind .STRING :
490490 advance (parser )
491- return ast .StringValue ( # type: ignore
492- value = token .value , loc = loc (parser , token .start )
491+ return ast .StringValue (
492+ value = token .value , loc = loc (parser , token .start ) # type: ignore
493493 )
494494
495495 elif token .kind == TokenKind .NAME :
496496 if token .value in ("true" , "false" ):
497497 advance (parser )
498- return ast .BooleanValue ( # type: ignore
498+ return ast .BooleanValue (
499499 value = token .value == "true" , loc = loc (parser , token .start )
500500 )
501501
502502 if token .value != "null" :
503503 advance (parser )
504- return ast .EnumValue ( # type: ignore
505- value = token .value , loc = loc (parser , token .start )
504+ return ast .EnumValue (
505+ value = token .value , loc = loc (parser , token .start ) # type: ignore
506506 )
507507
508508 elif token .kind == TokenKind .DOLLAR :
@@ -728,10 +728,10 @@ def parse_field_definition(parser):
728728 # type: (Parser) -> FieldDefinition
729729 start = parser .token .start
730730
731- return ast .FieldDefinition ( # type: ignore
731+ return ast .FieldDefinition (
732732 name = parse_name (parser ),
733733 arguments = parse_argument_defs (parser ),
734- type = expect (parser , TokenKind .COLON ) and parse_type (parser ),
734+ type = expect (parser , TokenKind .COLON ) and parse_type (parser ), # type: ignore
735735 directives = parse_directives (parser ),
736736 loc = loc (parser , start ),
737737 )
@@ -749,9 +749,9 @@ def parse_input_value_def(parser):
749749 # type: (Parser) -> InputValueDefinition
750750 start = parser .token .start
751751
752- return ast .InputValueDefinition ( # type: ignore
752+ return ast .InputValueDefinition (
753753 name = parse_name (parser ),
754- type = expect (parser , TokenKind .COLON ) and parse_type (parser ),
754+ type = expect (parser , TokenKind .COLON ) and parse_type (parser ), # type: ignore
755755 default_value = parse_const_value (parser )
756756 if skip (parser , TokenKind .EQUALS )
757757 else None ,
@@ -780,10 +780,11 @@ def parse_union_type_definition(parser):
780780 start = parser .token .start
781781 expect_keyword (parser , "union" )
782782
783- return ast .UnionTypeDefinition ( # type: ignore
783+ return ast .UnionTypeDefinition (
784784 name = parse_name (parser ),
785785 directives = parse_directives (parser ),
786- types = expect (parser , TokenKind .EQUALS ) and parse_union_members (parser ),
786+ types = expect (parser , TokenKind .EQUALS ) # type: ignore
787+ and parse_union_members (parser ),
787788 loc = loc (parser , start ),
788789 )
789790
0 commit comments