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

Fix Eigen argument doc strings #791

Merged
merged 1 commit into from
Apr 9, 2017

Conversation

jagerman
Copy link
Member

@jagerman jagerman commented Apr 9, 2017

Many of the Eigen type casters' name() methods weren't wrapping the type description in a type_descr object, which thus wasn't adding the "{...}" annotation used to identify an argument which broke the help output by skipping Eigen arguments.

The test code I had added even had some (unnoticed) broken output (with the "arg0: " showing up in the return value).

This commit also adds test code to ensure that named eigen arguments actually work properly, despite the invalid help output. (The added tests pass without the rest of this commit).

@jagerman
Copy link
Member Author

jagerman commented Apr 9, 2017

Whoops, that was only partially committed. Fixed.

Many of the Eigen type casters' name() methods weren't wrapping the type
description in a `type_descr` object, which thus wasn't adding the
"{...}" annotation used to identify an argument which broke the help
output by skipping eigen arguments.

The test code I had added even had some (unnoticed) broken output (with
the "arg0: " showing up in the return value).

This commit also adds test code to ensure that named eigen arguments
actually work properly, despite the invalid help output.  (The added
tests pass without the rest of this commit).
@jagerman jagerman merged commit e9e1774 into pybind:master Apr 9, 2017
@dean0x7d dean0x7d modified the milestone: v2.2 Aug 13, 2017
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