diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 742b476d..71ac53e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,8 +60,7 @@ jobs: - "3.10" - "3.11" - "3.12" - # TODO: Enable this once fixed https://github.com/jcrist/msgspec/issues/910 - # - "3.13" + - "3.13" - "3.14" steps: diff --git a/src/msgspec/_core.c b/src/msgspec/_core.c index d4151cd8..32834d41 100644 --- a/src/msgspec/_core.c +++ b/src/msgspec/_core.c @@ -5328,6 +5328,10 @@ Struct_alloc(PyTypeObject *type) { PyObject *obj; bool is_gc = MS_TYPE_IS_GC(type); +#if PY313_PLUS && !PY314_PLUS + type->tp_flags &= ~Py_TPFLAGS_INLINE_VALUES; +#endif + if (is_gc) { obj = PyObject_GC_New(PyObject, type); }