in Python, using a variable in an f-string is not recognized.
At least in the "Variable defined multiple times"-checker. It's claiming a variable isn't used before it's re-defined, but it is. It's used in an f-string. Perhaps codeql isn't parsing f-strings.
https://lgtm.com/projects/g/arvidn/libtorrent/snapshot/e89e7945a94cf26463dbf08349d268ced506b309/files/tools/linux_vmstat.py?sort=name&dir=ASC&mode=heatmap#x320f593af4371445:1