codeql icon indicating copy to clipboard operation
codeql copied to clipboard

Python: Add `Str` class

Open tausbn opened this issue 3 years ago • 0 comments
trafficstars

This makes the AST viewer (which annotates string constant nodes as Str, and not StrConst) a bit more consistent.

Fixes #9833.

It might be even better to instead flip the inheritance and make Str the lowest class in the hierarchy. That way, it would have access to all of the methods on StrConst (and indeed, we might consider just deprecating that class).


This is a very minor change, so I don't think a change note is required.

tausbn avatar Jul 19 '22 12:07 tausbn