Skip to content

Commit 5e8ecda

Browse files
committed
??? OMTypedParser
1 parent 589b70b commit 5e8ecda

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)) # type: ignore
115+
FALSE = Keyword("false").set_parse_action(replace_with(False)) # type: ignore
116+
NONE = (Keyword("NONE") + Suppress("(") + Suppress(")")).set_parse_action(replace_with(None)) # type: ignore
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)