[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250821082934.trGZCw9D@linutronix.de>
Date: Thu, 21 Aug 2025 10:29:34 +0200
From: Nam Cao <namcao@...utronix.de>
To: Gabriele Monaco <gmonaco@...hat.com>
Cc: linux-kernel@...r.kernel.org, Steven Rostedt <rostedt@...dmis.org>,
linux-trace-kernel@...r.kernel.org,
Tomas Glozar <tglozar@...hat.com>, Juri Lelli <jlelli@...hat.com>,
Clark Williams <williams@...hat.com>,
John Kacur <jkacur@...hat.com>
Subject: Re: [RFC PATCH 05/17] verification/rvgen: Annotate DA functions with
types
On Thu, Aug 14, 2025 at 05:07:57PM +0200, Gabriele Monaco wrote:
> Functions in automata.py, dot2c.py and dot2k.py don't have type
> annotations and it can get complicated to remember how to use them.
>
> Add minimal type annotations.
Nice, Python is sometimes hard to read because the type is not clear.
> - def __get_event_variables(self):
> + def __get_event_variables(self) -> tuple[list[str], list[str]]:
This annotation is wrong. It becomes correct only after your later patch
(verification/rvgen: Add support for Hybrid Automata)
The rest looks good.
Nam
Powered by blists - more mailing lists