Skip to content

Commit 97fa2b8

Browse files
committed
??? fix OMTypedParser
1 parent eef6d53 commit 97fa2b8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

OMPython/OMTypedParser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ def evaluate_expression(s, loc, toks):
111111

112112
# pyparsing's replace_with (and thus replace_with) has incorrect type
113113
# annotation: https://github.com/pyparsing/pyparsing/issues/602
114-
TRUE = Keyword("true").set_parse_action(replace_with(True))
115-
FALSE = Keyword("false").set_parse_action(replace_with(False))
116-
NONE = (Keyword("NONE") + Suppress("(") + Suppress(")")).set_parse_action(replace_with(None))
114+
TRUE = Keyword("true").set_parse_action(replace_with('True'))
115+
FALSE = Keyword("false").set_parse_action(replace_with('False'))
116+
NONE = (Keyword("NONE") + Suppress("(") + Suppress(")")).set_parse_action(replace_with('None'))
117117
SOME = (Suppress(Keyword("SOME")) + Suppress("(") + omcValue + Suppress(")"))
118118

119119
omcString = QuotedString(quote_char='"', esc_char='\\', multiline=True).set_parse_action(convert_string)

0 commit comments

Comments
 (0)