File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
graalpython/lib-graalpython/patches Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -413,6 +413,10 @@ dist-type = 'sdist'
413413version = ' 1.22.1'
414414url = ' https://github.com/microsoft/onnxruntime/archive/refs/tags/v1.22.1.tar.gz'
415415
416+ [[optree .rules ]]
417+ patch = ' optree.patch'
418+ license = ' Apache-2.0'
419+
416420[[orjson .rules ]]
417421version = ' == 3.9.7'
418422patch = ' 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