-
Notifications
You must be signed in to change notification settings - Fork 10
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
Replace the use __slots__ for the appropiate API #23
Replace the use __slots__ for the appropiate API #23
Conversation
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with green CI
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! One fix needed for flake8, then I can run CI again.
…of __slots__ Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
@Voldivh It looks like there is one more bug with this somehow. See the output from the Linux job at https://ci.ros2.org/job/ci_linux/18361/testReport/junit/ros2topic.ros2topic.test/test_cli/test_cli/:
Can you take a look? |
…n for each message field Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
The last commit should fix the issue at hand. I think we can trigger CI |
…lds and field types Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just grepping around, it looks like get_message_slot_types
also uses __slots__
, and so also needs to be fixed in this file.
… of the messages Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
The current use of the lookup for the fields and field types of a message object is being done by using the attributes
__slots__
and__SLOT_TYPES
from the object class. This PR uses the correct APIget_field_and_field_types()
in order to accomplish this.