perf flamegraph: Fix minor pylint/type hint issues
authorIan Rogers <irogers@google.com>
Wed, 16 Jul 2025 00:46:35 +0000 (17:46 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 16 Jul 2025 17:43:27 +0000 (10:43 -0700)
commit95d692f9aba7c13b5b3e8d842656c47bde7e551f
tree46b1ba091980be1114bad1de0700adaed8716103
parent8db1d772484dfa959044dd43dc28482c8c543b74
perf flamegraph: Fix minor pylint/type hint issues

Switch to assuming python3. Fix minor pylint issues on line length,
repeated compares, not using f-strings and variable case. Add type
hints and check with mypy.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20250716004635.31161-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/scripts/python/flamegraph.py