A while ago I opened this pull request to add type hints to the generated messages. Currently this can be achieved by using this external generator. I have recently updated this pull requested since kilted
bumped the minimum supported python version to 3.9
. If you are interested in better static type checking in ros2
feel free to drop a review.