-
Notifications
You must be signed in to change notification settings - Fork 22
int object has no attribute strip #52
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: humble
Are you sure you want to change the base?
Conversation
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
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.
Not very familiar with this codebase so my comments are rather just comments.
Curious to see test result. Looks like there's a test that calls the very function that is being changed, generate_dotcode
.
Then, IIUC, the test is NOT executed on CI (a result from this PR)? If so better run the test on CI.
@@ -95,6 +95,14 @@ def generate_dotcode(self, | |||
self.listen_duration = 0 | |||
|
|||
yaml_data = tf2_frame_srv.call(FrameGraph.Request()).frame_yaml | |||
|
|||
def my_construct_mapping(self, node, deep=False): | |||
data = self.construct_mapping_org(node, deep) |
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.
Does self.construct_mapping_org
reference properly? I can't find the definition of such a symbol.
data = self.construct_mapping_org(node, deep) | ||
return {(str(key) if isinstance(key, int) else key): data[key] for key in data} | ||
|
||
yaml.SafeLoader.construct_mapping_org = yaml.SafeLoader.construct_mapping |
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.
Is there a usecase for yaml.SafeLoader.construct_mapping_org
?
Co-authored-by: Isaac Saito <[email protected]>
Co-authored-by: Isaac Saito <[email protected]>
Related with #27