Specs:
- Operating system: Windows 11
- SonarQube for VS Code plugin version: 4.35.1 (from github)
- Programming language you’re coding in: Python
- Connected mode used: SonarQube Server 9.9.9
Description of the problem / question:
Hello,
When trying to use the new syntax introduced by PEP 695, the plugin analysis fails on the file.
class MyClass[**P, T]:
def __init__(
self,
my_function: Callable[P, T],
) -> None:
pass
Parse error at line 1 column 13:
--> class MyClass[**P, T]:
2: def __init__(self, my_function: Callable[P, T]) -> None:
3: pass
This code is perfectly valid and works fine in python 3.12. Also, when performing the analysis on the server, it works fine.
Is this a known bug ?
Thank you in advance !