Replace the use __slots__ for the appropiate API#23
Merged
clalancette merged 9 commits intoros2:rollingfrom Apr 3, 2023
Merged
Replace the use __slots__ for the appropiate API#23clalancette merged 9 commits intoros2:rollingfrom
clalancette merged 9 commits intoros2:rollingfrom
Conversation
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
clalancette
approved these changes
Mar 28, 2023
clalancette
requested changes
Mar 28, 2023
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
clalancette
approved these changes
Mar 28, 2023
Contributor
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
clalancette
requested changes
Mar 29, 2023
Contributor
clalancette
left a comment
There was a problem hiding this comment.
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>
clalancette
reviewed
Mar 29, 2023
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Contributor
Contributor
|
@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>
Contributor
Author
|
The last commit should fix the issue at hand. I think we can trigger CI |
clalancette
requested changes
Mar 30, 2023
…lds and field types Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
clalancette
requested changes
Mar 30, 2023
Contributor
clalancette
left a comment
There was a problem hiding this comment.
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>
clalancette
approved these changes
Mar 30, 2023
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_TYPESfrom the object class. This PR uses the correct APIget_field_and_field_types()in order to accomplish this.