Skip to content
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

Require keyword arguments be passed by name #80

Merged
merged 2 commits into from
Aug 19, 2019
Merged

Conversation

jacobperron
Copy link
Member

Also fix style by breaking after open parenthesis.

Addresses #38 (comment)

Also fix style by breaking after open parenthesis.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
*,
truncate_length: int = None,
no_arr: bool = False,
no_str: bool = False) -> str:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: use single level of indentation here and wrap again before the closing parenthesis.

Same below.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: 1477de2

Maybe we should consider adding a note to our Python style guide. PEP 8 is happy with the previous two styles.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Member Author

CI with ros2/ros2cli#317:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@jacobperron jacobperron merged commit 85a9590 into master Aug 19, 2019
@delete-merged-branch delete-merged-branch bot deleted the jacob/kwargs branch August 19, 2019 20:05
jacobperron added a commit to ros2/rosidl_runtime_py that referenced this pull request Sep 19, 2019
* Require keyword arguments be passed by name

Also fix style by breaking after open parenthesis.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Update style

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants