Skip to content

Commit 05d2fd4

Browse files
committed
Workaround for __qualname__ on PyPy3
1 parent 6acb4ba commit 05d2fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/detail/class.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
1616
NAMESPACE_BEGIN(detail)
1717

18-
#if PY_VERSION_HEX >= 0x03030000
18+
#if PY_VERSION_HEX >= 0x03030000 && !defined(PYPY_VERSION)
1919
# define PYBIND11_BUILTIN_QUALNAME
2020
# define PYBIND11_SET_OLDPY_QUALNAME(obj, nameobj)
2121
#else

0 commit comments

Comments
 (0)