summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@arm.com>2026-10-23 14:20:24 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-11-07 17:31:37 -0300
commit1b0935ab5ac2e31ee0c2641d2b58b4af3db68a7a (patch)
treed59096c6b0e22a03351fb89a9ad2c4498c1609a8 /tools/perf/scripts/python
parente48155a1bbf1a867d76241c66bac270aa0509dde (diff)
perf treport: Initialize the subtitle in the constructor
For Arm64 cross build without Textual, assignments outside __init__() trigger pylint warning: ************* Module treport python/treport.py:625:8: W0201: Attribute 'sub_title' defined outside __init__ (attribute-defined-outside-init) python/treport.py:629:12: W0201: Attribute 'sub_title' defined outside __init__ (attribute-defined-outside-init) python/treport.py:668:8: W0201: Attribute 'sub_title' defined outside __init__ (attribute-defined-outside-init) python/treport.py:675:8: W0201: Attribute 'sub_title' defined outside __init__ (attribute-defined-outside-init) ------------------------------------------------------------------ Your code has been rated at 9.91/10 (previous run: 9.91/10, +0.00) Move the initial subtitle assignment from on_mount() to ReportApp.__init__() so pylint can see the attribute initialization without resolving the Textual base class. Fixes: b379b70b7b7b41ff ("perf treport: Show the profile while it loads") Signed-off-by: Leo Yan <leo.yan@arm.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Aishwarya TCV <aishwarya.tcv@arm.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alice Rogers <alice.mei.rogers@gmail.com> Cc: Ian Rogers <irogers@google.com> Cc: James Clark <james.clark@linaro.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions