Skip to content

Conversation

@rwgk
Copy link
Contributor

@rwgk rwgk commented Apr 18, 2024

Description

This fixes a silly misunderstanding.

This PR is best understood by reviewing the individual commits in order.

Google-internal global test ID: OCL:626240839:BASE:626375750:1713541129757:e746a257

Suggested changelog entry:

rwgk added 6 commits April 18, 2024 10:49
🐍 3 • Clang dev • C++11 • x64

```
-- The CXX compiler identification is Clang 19.0.0
```

```
/__w/pybind11k/pybind11k/include/pybind11/detail/function_record_pyobject.h:38:26: error: cast from 'PyObject *(*)(PyObject *, PyObject *, PyObject *)' (aka '_object *(*)(_object *, _object *, _object *)') to 'PyCFunction' (aka '_object *(*)(_object *, _object *)') converts to incompatible function type [-Werror,-Wcast-function-type-mismatch]
   38 |     = {{"__reduce_ex__", (PyCFunction) reduce_ex_impl, METH_VARARGS | METH_KEYWORDS, nullptr},
```
@rwgk rwgk merged commit e10cb7e into google:main Apr 19, 2024
@rwgk rwgk deleted the native_enum_module_attr_fix branch April 19, 2024 16:39
rwgk added a commit to google/clif that referenced this pull request Aug 27, 2024
This update needs corresponding changes in third_party/clif/testing/python/t3_test.py

TGP-tested via child CL: http://tap/OCL:626240839:BASE:626375750:1713541129757:e746a257

Note: Currently codesearch finds matches for `pybind11 native_enum` only in third_party/pybind11 and third_party/clif/pybind11.

This CL fixes 12 PyCLIF-pybind11 TGP failures: b/287289622#comment72

#MIGRATION_3P_PYBIND11__DEFAULT

  - e10cb7ec5d7091a817ed0f6a40f4d9f155c644c5 Fix `native_enum` `__module__` attribute: it needs to be ... by Ralf W. Grosse-Kunstleve <rwgk@google.com>

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

2 participants