Re: [PATCH 0/2] perf python: Fix pylint warnings without Textual

From: Arnaldo Carvalho de Melo

Date: Wed Nov 04 2026 - 17:22:21 EST


On Fri, Oct 23, 2026 at 02:20:23PM +0100, Leo Yan wrote:
> An arm64 cross build without Textual on the host reports W0201 warnings
> in treport.py and ttimechart.py, causing the build to fail.
>
> Initialize the inherited attributes in their constructors so pylint can
> recognize them without resolving the Textual base classes.

Seems simple enough, applying for v7.4.

- Arnaldo

> Signed-off-by: Leo Yan <leo.yan@xxxxxxx>
> ---
> Leo Yan (2):
> perf treport: Initialize the subtitle in the constructor
> perf timechart: Initialize Textual attributes in constructors
>
> tools/perf/python/treport.py | 2 +-
> tools/perf/python/ttimechart.py | 2 ++
> 2 files changed, 3 insertions(+), 1 deletion(-)
> ---
> base-commit: 1c90f0a3c8a1c4e38f9edd97af9e20848805a7fb
> change-id: 20261023-perf_fix_pylint_warning-58408f0b6c91
>
> Best regards,
> --
> Leo Yan <leo.yan@xxxxxxx>
>