Skip to content

Commit bf86059

Browse files
walacglemco
authored andcommitted
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>
1 parent 5d98f7f commit bf86059

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/verification/rvgen/rvgen/ltl2k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, file_path, MonitorType, extra_params={}):
7575
if not self.name:
7676
self.name = Path(file_path).stem
7777

78-
def _fill_states(self) -> str:
78+
def _fill_states(self) -> list[str]:
7979
buf = [
8080
"enum ltl_buchi_state {",
8181
]

0 commit comments

Comments
 (0)