diff options
| author | James Clark <james.clark@linaro.org> | 2026-10-06 14:03:32 +0100 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-10-19 09:25:01 -0300 |
| commit | dd1c6ac2f70f6a5b2d57bec2584de7bc7c144508 (patch) | |
| tree | 4c1283c6502b11513ecef7158d0b9b5173c401fb /scripts/Makefile.thinlto | |
| parent | 5927da00783dc8e5a20e059ba2762cdcff1fd3b6 (diff) | |
| download | linux-dd1c6ac2f70f6a5b2d57bec2584de7bc7c144508.tar.gz linux-dd1c6ac2f70f6a5b2d57bec2584de7bc7c144508.zip | |
perf treport: Fix profile builder type narrowing in progress callback
Mypy does not retain the narrowing of an optional local variable inside
the nested progress callback, causing the perf build to fail with:
python/treport.py:649: error: Item "None" of "ProfileBuilder | None" has no attribute "cancelled" [union-attr]
Check the loading builder before assigning it to profile so the captured
variable is inferred as ProfileBuilder rather than
Optional[ProfileBuilder]. Keep the existing assertion and background
loading behavior.
Fixes: b379b70b7b7b ("perf treport: Show the profile while it loads")
Assisted-by: Codex:GPT-6.1-Sol
Signed-off-by: James Clark <james.clark@linaro.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
