-
Notifications
You must be signed in to change notification settings - Fork 52
Static typing for Message, Services, and Actions #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: rolling
Are you sure you want to change the base?
Conversation
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Still need to fix a circular import issue. |
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Now that kilted is starting to wrap up friendly ping @sloretz to re-review when you get a chance. |
Friendly ping @sloretz to finish the review when you get a chance. |
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
This pull request has been mentioned on Open Robotics Discourse. There might be relevant details there: https://discourse.ros.org/t/python-generated-messages-with-static-type-hints/45156/1 |
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
@benjaminwp18 Thanks so much for the review! I have addressed your feedback. Please let me know if you have any other feedback. |
Signed-off-by: Michael Carlstrom <[email protected]>
@christophebedard when you get a chance I would appreciate a ROS Maintainer review as well. |
Signed-off-by: Michael Carlstrom <[email protected]>
rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake
Outdated
Show resolved
Hide resolved
…ces.cmake Co-authored-by: Christophe Bedard <[email protected]> Signed-off-by: Michael Carlstrom <[email protected]>
Co-authored-by: Christophe Bedard <[email protected]> Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Pulls: #206 |
I ran full CI^ so that interfaces get generated, and so that hopefully the linters (including mypy) run on the generated files as part of tests in the various interface packages. The Rpr job doesn't really test much here. |
Thanks so much for the review!
I was going to ask about this since I have a feeling this will expose some downstream bugs to be fixed. |
Signed-off-by: Michael Carlstrom <[email protected]>
Pulls: #206 |
Another old mypy bug. import typing
class A:
def __init__(self) -> typing.NoReturn: # The return type of "__init__" must be None
raise NotImplementedError() Will add a # type: ignore for now. Cannot wait for |
Signed-off-by: Michael Carlstrom <[email protected]>
Signed-off-by: Michael Carlstrom <[email protected]>
Adds static typing to generated messages. Closes #157.