codeql
codeql copied to clipboard
Python: Add `toString` method to `StrConst`
Override StrConst's toString to show the correct type on the AST viewer. Currently, the AST shows the type "Str", which does not exist.
Fixes https://github.com/github/codeql/issues/9833.
@tausbn could you add the no change note required tag so that the tests run?
Thank you for your submission. After discussing this in the Python team, in the end, we went for a slightly less invasive solution to this issue: #9852.