mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Mark PyClassMethod as ThreadSafe
This commit is contained in:
1 parent
c4ab76c1e8
commit
804d9c5fab
1 file changed
+2
-1
@@ -1,7 +1,7 @@
|
||||
use super::objtype::PyClassRef;
|
||||
use crate::function::OptionalArg;
|
||||
use crate::pyobject::{
|
||||
PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue, TypeProtocol,
|
||||
PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue, ThreadSafe, TypeProtocol,
|
||||
};
|
||||
use crate::slots::SlotDescriptor;
|
||||
use crate::vm::VirtualMachine;
|
||||
@@ -32,6 +32,7 @@ pub struct PyClassMethod {
|
||||
callable: PyObjectRef,
|
||||
}
|
||||
pub type PyClassMethodRef = PyRef<PyClassMethod>;
|
||||
impl ThreadSafe for PyClassMethod {}
|
||||
|
||||
impl PyClassMethod {
|
||||
pub fn new(value: PyObjectRef) -> Self {
|
||||
|
||||
Reference in new issue
Block a user