B701 false positive when using jinja2.select_autoescape()
instead of select_autoescape()
#711
Labels
bug
Something isn't working
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: