PyCharm 2020.3 (Professional Edition)
Build #PY-203.5981.165, built on December 16, 2020
SonarLint 4.13.0.24781
Python 3.9.1
Code:
def row_col_sep(pair: str) -> list[int]:
value: str
return [int(value) for value in pair.split(",")]
SonarLint displays that there’s a code smell “Unused local variables should be removed” for the local varible “value” (see the type hint in line 23 in the attached image), even though the variable is used in the next row.