]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rv/rvgen: fix _fill_states() return type annotation
authorWander Lairson Costa <wander@redhat.com>
Mon, 23 Feb 2026 16:18:02 +0000 (13:18 -0300)
committerGabriele Monaco <gmonaco@redhat.com>
Wed, 1 Apr 2026 08:16:20 +0000 (10:16 +0200)
The _fill_states() method returns a list of strings, but the type
annotation incorrectly specified str. Update the annotation to
list[str] to match the actual return value.

Signed-off-by: Wander Lairson Costa <wander@redhat.com>
Reviewed-by: Gabriele Monaco <gmonaco@redhat.com>
Link: https://lore.kernel.org/r/20260223162407.147003-20-wander@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
tools/verification/rvgen/rvgen/ltl2k.py

index b8ac584fe2504d61ca13cccedd06d43db0f412f7..81fd1f5ea5ea2a678a102eb5861aacb606d36850 100644 (file)
@@ -75,7 +75,7 @@ class ltl2k(generator.Monitor):
         if not self.name:
             self.name = Path(file_path).stem
 
-    def _fill_states(self) -> str:
+    def _fill_states(self) -> list[str]:
         buf = [
             "enum ltl_buchi_state {",
         ]