File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ def _(result: ParseResults) -> Reference:
103103 return Reference ("." .join (result .column ))
104104
105105
106- boolean = one_of (["true" , "false" ], caseless = True ). set_results_name ( "boolean" )
106+ boolean = one_of (["true" , "false" ], caseless = True )
107107string = sgl_quoted_string .set_results_name ("raw_quoted_string" )
108108decimal = common .real ().set_results_name ("decimal" )
109109integer = common .signed_integer ().set_results_name ("integer" )
@@ -115,7 +115,7 @@ def _(result: ParseResults) -> Reference:
115115
116116@boolean .set_parse_action
117117def _ (result : ParseResults ) -> Literal [bool ]:
118- if strtobool (result . boolean ):
118+ if strtobool (result [ 0 ] ):
119119 return BooleanLiteral (True )
120120 else :
121121 return BooleanLiteral (False )
You can’t perform that action at this time.
0 commit comments