mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
style: pre-commit fixes
This commit is contained in:
parent
8df2e819d2
commit
f4e6c7833e
@ -173,9 +173,11 @@ bool has_pybind11_internals_builtin() {
|
||||
#if PY_VERSION_HEX < 0x03080000
|
||||
state_dict = py::reinterpret_borrow<py::dict>(PyEval_GetBuiltins());
|
||||
#elif PY_VERSION_HEX < 0x03090000
|
||||
state_dict = py::reinterpret_borrow<py::dict>(PyInterpreterState_GetDict(_PyInterpreterState_Get()));
|
||||
state_dict
|
||||
= py::reinterpret_borrow<py::dict>(PyInterpreterState_GetDict(_PyInterpreterState_Get()));
|
||||
#else
|
||||
state_dict = py::reinterpret_borrow<py::dict>(PyInterpreterState_GetDict(PyInterpreterState_Get()));
|
||||
state_dict
|
||||
= py::reinterpret_borrow<py::dict>(PyInterpreterState_GetDict(PyInterpreterState_Get()));
|
||||
#endif
|
||||
return state_dict.contains(PYBIND11_INTERNALS_ID);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user