-
Notifications
You must be signed in to change notification settings - Fork 62
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
Remove abuse of arg_v. #1954
Remove abuse of arg_v. #1954
Conversation
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.
So, were all the argument descriptions dropped?
pybind11::arg("policy"), | ||
"A cv_policy used to discretise the cell into compartments for simulation") |
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.
These look like a different pattern, is this OK?
|
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.
Most of them just removed the docstring, right? Not that they were terribly useful.
Yes, where redundant I removed them. |
Do not abuse
pybind::arg_v("name", T default, "description")
aspybind::arg_v("name", "description")
.Use descriptive names and
pybind::arg
instead.Closes #1754