mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
This commit is contained in:
parent
087b07c8b7
commit
8adef2c7f6
@ -1870,7 +1870,14 @@ private:
|
|||||||
#if !defined(NDEBUG)
|
#if !defined(NDEBUG)
|
||||||
, type(type_id<T>())
|
, type(type_id<T>())
|
||||||
#endif
|
#endif
|
||||||
{ }
|
{
|
||||||
|
// Workaround! See:
|
||||||
|
// https://github.com/pybind/pybind11/issues/2336
|
||||||
|
// https://github.com/pybind/pybind11/pull/2685#issuecomment-731286700
|
||||||
|
if (PyErr_Occurred()) {
|
||||||
|
PyErr_Clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// Direct construction with name, default, and description
|
/// Direct construction with name, default, and description
|
||||||
|
Loading…
Reference in New Issue
Block a user