Skip to content

Commit 435a2f5

Browse files
Update pyo3
1 parent 2755f1b commit 435a2f5

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

‎Cargo.lock‎

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/capi/src/object/pytype.rs‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,14 @@ pub unsafe extern "C" fn PyObject_GetTypeData(
323323
}
324324
}
325325

326+
#[unsafe(no_mangle)]
327+
pub unsafe extern "C" fn PyObject_GetTypeData_DuringGC(
328+
obj: *mut PyObject,
329+
cls: *mut PyTypeObject,
330+
) -> *mut c_void {
331+
unsafe { PyObject_GetTypeData(obj, cls) }
332+
}
333+
326334
#[unsafe(no_mangle)]
327335
pub extern "C" fn PyType_Freeze(_ty: *mut PyTypeObject) -> c_int {
328336
0

0 commit comments

Comments
 (0)