Skip to content

Commit

Permalink
remove no any return
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
  • Loading branch information
InvincibleRMC committed Oct 19, 2024
1 parent 2779c00 commit 5e60e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosidl_parser/rosidl_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def get_positive_int_const(positive_int_const: ParseTree) -> int:
pass
else:
# TODO ensure that identifier resolves to a positive integer
return identifier_token.value
return int(identifier_token.value)

assert False, 'Unsupported tree: ' + str(positive_int_const)

Expand Down

0 comments on commit 5e60e59

Please sign in to comment.