Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rv/rvgen: fix _fill_states() return type annotation

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>

authored by

Wander Lairson Costa and committed by
Gabriele Monaco
bf860598 5d98f7f5

+1 -1
+1 -1
tools/verification/rvgen/rvgen/ltl2k.py
··· 75 75 if not self.name: 76 76 self.name = Path(file_path).stem 77 77 78 - def _fill_states(self) -> str: 78 + def _fill_states(self) -> list[str]: 79 79 buf = [ 80 80 "enum ltl_buchi_state {", 81 81 ]