diff options
| author | James Clark <james.clark@linaro.org> | 2026-10-06 14:03:31 +0100 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-10-19 09:24:59 -0300 |
| commit | 5927da00783dc8e5a20e059ba2762cdcff1fd3b6 (patch) | |
| tree | e9530b9cb1c71be6fc167ce1f2f0eec88932fd9c /scripts/Makefile.thinlto | |
| parent | 1c90f0a3c8a1c4e38f9edd97af9e20848805a7fb (diff) | |
| download | linux-5927da00783dc8e5a20e059ba2762cdcff1fd3b6.tar.gz linux-5927da00783dc8e5a20e059ba2762cdcff1fd3b6.zip | |
perf timechart: Fix task row type narrowing in goto_task()
Mypy cannot narrow Row to TaskRow or IoRow when the class passed to
isinstance() comes from a loop variable, causing the perf build to fail
with:
python/ttimechart.py:1686: error: "Row" has no attribute "task" [attr-defined]
Check against TaskRow and IoRow explicitly so mypy can verify access to
the task attribute. The tasks and I/O views contain TaskRow and IoRow
instances respectively, so task navigation behaves as before.
Fixes: e7a72d6919804e5e ("perf timechart: Add an interactive --tui mode")
Reviewed-by: Ian Rogers <irogers@google.com>
Assisted-by: Codex:GPT-6.1-Sol
Signed-off-by: James Clark <james.clark@linaro.org>
Cc: Alice Rogers <alice.mei.rogers@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
