Files
codeql/python/ql/test/3/extractor-tests/fstrings3.6/Formatted.ql
Taus 82057e2e46 Python: Autoformat tests
I guess these were never considered back when we switched to
autoformatting everything.
2024-04-15 15:27:21 +00:00

16 lines
398 B
Plaintext

import python
from FormattedValue val, string format, string typeconv
where
(
typeconv = val.getConversion()
or
not exists(val.getConversion()) and typeconv = " "
) and
(
format = val.getFormatSpec().getValue(0).(StrConst).getText()
or
not exists(val.getFormatSpec()) and format = ""
)
select val.getLocation().getStartLine(), val, format, val.getValue(), typeconv