File tree Expand file tree Collapse file tree
graalpython/lib-graalpython/patches Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -388,6 +388,10 @@ dist-type = 'sdist'
388388version = ' 1.17.1'
389389url = ' https://github.com/microsoft/onnxruntime/archive/refs/tags/v1.17.1.tar.gz'
390390
391+ [[optree .rules ]]
392+ patch = ' optree.patch'
393+ license = ' Apache-2.0'
394+
391395[[orjson .rules ]]
392396version = ' == 3.9.7'
393397patch = ' orjson-3.9.7.patch'
Original file line number Diff line number Diff line change 1+ diff --git a/include/optree/pymacros.h b/include/optree/pymacros.h
2+ index 7f2ac9a..ecb6faf 100644
3+ --- a/include/optree/pymacros.h
4+ +++ b/include/optree/pymacros.h
5+ @@ -52,7 +52,7 @@ namespace py = pybind11;
6+ # define Py_IsFalse(x) Py_Is((x), Py_False)
7+ #endif
8+
9+ - inline constexpr Py_ALWAYS_INLINE bool Py_IsConstant(PyObject *x) noexcept {
10+ + inline Py_ALWAYS_INLINE bool Py_IsConstant(PyObject *x) noexcept {
11+ return Py_IsNone(x) || Py_IsTrue(x) || Py_IsFalse(x);
12+ }
13+ #define Py_IsConstant(x) Py_IsConstant(x)
You can’t perform that action at this time.
0 commit comments