-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing an attribute or an index in a dictionnary comprehension trigger an error with the mako version 1.3.3 #398
Comments
This regression has been introduced by this commit e2606d5 |
whew OK it's not a regex issue, should be easy to fix unless you have a PR in mind? |
sgranjoux
pushed a commit
to sgranjoux/mako
that referenced
this issue
May 13, 2024
… flag Fixes: sqlalchemy#398 The element or key and value used respectively in list/set comprehension and dictionary comprehension cannot be used to declare identifiers so no need to visit them.
sgranjoux
pushed a commit
to sgranjoux/mako
that referenced
this issue
May 13, 2024
… flag Fixes: sqlalchemy#398 The element or key and value used respectively in list/set comprehension and dictionary comprehension cannot be used to declare identifiers so no need to visit them.
sgranjoux
pushed a commit
to sgranjoux/mako
that referenced
this issue
May 13, 2024
… flag Fixes: sqlalchemy#398 The element or key and value used respectively in list/set comprehension and dictionary comprehension cannot be used to declare identifiers so no need to visit them.
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: