Skip to content

Commit d827628

Browse files
committed
Mark PySuper as ThreadSafe
1 parent 54bd8eb commit d827628

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vm/src/obj/objsuper.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ use super::objstr::PyStringRef;
1010
use super::objtype::{self, PyClass, PyClassRef};
1111
use crate::function::OptionalArg;
1212
use crate::pyobject::{
13-
IdProtocol, PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue, TryFromObject,
14-
TypeProtocol,
13+
IdProtocol, PyClassImpl, PyContext, PyObjectRef, PyRef, PyResult, PyValue, ThreadSafe,
14+
TryFromObject, TypeProtocol,
1515
};
1616
use crate::scope::NameProtocol;
1717
use crate::slots::SlotDescriptor;
@@ -27,6 +27,7 @@ pub struct PySuper {
2727
typ: PyClassRef,
2828
obj: Option<(PyObjectRef, PyClassRef)>,
2929
}
30+
impl ThreadSafe for PySuper {}
3031

3132
impl PyValue for PySuper {
3233
fn class(vm: &VirtualMachine) -> PyClassRef {

0 commit comments

Comments
 (0)