Secret followed by type hint are not detected #780
Labels
enhancement
The issue is related to improving a certain aspect of the project.
help wanted
Indicates that we would like someone that’s not a maintainer to work on the issue.
triaged
The issue has been reviewed but has not been solved yet.
I'm submitting a ...
What is the current behavior?
The current algorithm is not able to detect secrets with type hint. E.g.
my_password: str = "bar"
is not detected.
I expect that
detect_secrets
warns if someone tries to set a secret as a default value.Detect secrets version: 1.4.0
Python version : 3.10.13 | packaged by conda-forge | (main, Oct 26 2023, 18:07:37) [GCC 12.3.0]
IPython version : 8.14.0
Tornado version : 6.3.3
Operating system : Linux-4.19.0-21-amd64-x86_64-with-glibc2.35
The text was updated successfully, but these errors were encountered: