-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
B701 false positive when using jinja2.select_autoescape()
instead of select_autoescape()
#711
Labels
bug
Something isn't working
Comments
paw-lu
changed the title
s701 false positive when using
s701 false positive when using May 18, 2021
jinja2.select_autoescape()
when not using from
importsjinja2.select_autoescape()
instead of select_autoescape()
paw-lu
changed the title
s701 false positive when using
B701 false positive when using May 18, 2021
jinja2.select_autoescape()
instead of select_autoescape()
jinja2.select_autoescape()
instead of select_autoescape()
Missed this the first time, but looks like this is a duplicate of #453 |
shifqu
added a commit
to shifqu/pytest-generator
that referenced
this issue
Aug 21, 2021
This avoids a false positive for B701, PyCQA/bandit#711 Also ran black and added docstring
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using
select_autoescape
from thejinja2
namespace directly (jinja2.select_autoescape()
), a false positive s701 is raised.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect both of the above files to pass and not raise s701. I expect bandit to accept
jinja2.select_autoescape()
as a valid safe argument.Bandit version
Thanks for the project!
The text was updated successfully, but these errors were encountered: