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

py::arg and py::arg_v member function chaining fixes #30155

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

rwgk
Copy link
Contributor

@rwgk rwgk commented Aug 29, 2024

Description

Add missing chaining member function for derived types. Add unit tests.

Fixes transferred from cl/627122374 (originally 2024-04-22).

Suggested changelog entry:

Ralf W. Grosse-Kunstleve added 3 commits August 28, 2024 23:49
```
/__w/pybind11clif/pybind11clif/tests/test_return_value_policy_pack.cpp:447:73: error: braces around scalar initializer [-Werror,-Wbraced-scalar-init]
  447 |         py::arg("cb").noconvert().policies(py::return_value_policy_pack({rvpb})),
      |                                                                         ^~~~~~
```
@rwgk rwgk marked this pull request as ready for review August 29, 2024 17:18
@rwgk rwgk merged commit 0bf3e8e into google:main Aug 29, 2024
73 checks passed
@rwgk rwgk deleted the arg_arg_v_chaining_fixes_clif branch August 29, 2024 17:18
rwgk pushed a commit to google/clif that referenced this pull request Sep 6, 2024
This CL was used in a PyCLIF-pybind11 TGP (cl/667456010, 2024-08-26):

http://tap/OCL:667456010:BASE:667610796:1724689781533:d2626456:

```
    571 Failing Targets
    147 Broken Targets
```

For this to work, a pybind11clif fix is needed (merged already):

* google/pybind11clif#30155

See also: https://b.corp.google.com/issues/287289622#comment75

PiperOrigin-RevId: 668995414
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.

1 participant