-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Missing node attributes for jinja2 #3197
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
Comments
I guess that's true for all attributes that are added dynamically via the |
Instead of |
@utkarsh2102 I think this is what we need to do here. |
FWIW this would be obsoleted by #5423. |
jinja ships its own (more correct) stubs now see python/typeshed#3197
Closing as the jinja2 stubs will be removed in a few months. |
jinja ships its own (more correct) stubs now see python/typeshed#3197
jinja ships its own (more correct) stubs now see python/typeshed#3197
It looks like the stubs for jinja2 are missing attributes for its node objects.
For example, this works fine:
but mypy says:
because of:
typeshed/third_party/2and3/jinja2/nodes.pyi
Lines 160 to 164 in b2cd972
cc @rowillia who originally added them in #722
The text was updated successfully, but these errors were encountered: