Integrate SonarQube with your AI agent, scan for secrets and dependency risks, and explore and manage issues—all from the command line.
Start using SonarQube CLI
Thank you for reporting this issue and welcome to the community. I confirm that we still have this issue on the last version of the python analyzer (which we just released).
Just to add a little more context. The interesting part of PEP 484 is:
Forward references
When a type hint contains names that have not been defined yet, that definition may be expressed as a string literal, to be resolved later.
Type annotations should not be reported as duplicate strings. Type checkers will raise an issue if the type hint has a typo, and putting these strings in a variable doesn’t help readability.