My team has recently set up Sonarqube Enterprise Edition Version 9.4 (build 54424) but have some false positives on our python3.10 code.
Our sonar-project.properties (key removed):
sonar.projectKey=...
sonar.python.version=3.10
I made an MRE like this, which makes use of type being a typing.Generic. It gets reported as python:S5644 “Item operations should be done on objects supporting them.”
type_alias = type[Exception]
I am aware that I can use the “Resolve as false positive” option, but I was more fearful that I have somehow not correctly set up the python version correctly.