Skip to content

Commit 804d9c5

Browse files
committed
Mark PyClassMethod as ThreadSafe
1 parent c4ab76c commit 804d9c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vm/src/obj/objclassmethod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::objtype::PyClassRef;
22
use crate::function::OptionalArg;
33
use crate::pyobject::{
4-
PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue, TypeProtocol,
4+
PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue, ThreadSafe, TypeProtocol,
55
};
66
use crate::slots::SlotDescriptor;
77
use crate::vm::VirtualMachine;
@@ -32,6 +32,7 @@ pub struct PyClassMethod {
3232
callable: PyObjectRef,
3333
}
3434
pub type PyClassMethodRef = PyRef<PyClassMethod>;
35+
impl ThreadSafe for PyClassMethod {}
3536

3637
impl PyClassMethod {
3738
pub fn new(value: PyObjectRef) -> Self {

0 commit comments

Comments
 (0)