Closed sgranjoux closed 3 months ago
This regression has been introduced by this commit https://github.com/sqlalchemy/mako/commit/e2606d5b37e9a98709147f198de59050869436b4
whew OK it's not a regex issue, should be easy to fix unless you have a PR in mind?
Sébastien Granjoux has proposed a fix for this issue in the main branch:
Fix support comprehensions inside functions when use strict_undefined… https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/5322
Here is an example
This produces the following error:
I am running Python 3.10.12 and Mako 1.3.3. It was working with Mako 1.3.2.