diff --git a/tatsu/contexts.py b/tatsu/contexts.py index 6143466..50d7df3 100644 --- a/tatsu/contexts.py +++ b/tatsu/contexts.py @@ -739,7 +739,7 @@ def _constant(self, literal): except (ValueError, SyntaxError): if '\n' in literal: literal = trim(literal) - literal = eval( # noqa: S307, PGH001 + literal = eval( # noqa: S307 f'{"f" + repr(literal)}', {}, self.ast, ) self._append_cst(literal)