diff --git a/vm/src/protocol/number.rs b/vm/src/protocol/number.rs index e650fe013..7295f3e85 100644 --- a/vm/src/protocol/number.rs +++ b/vm/src/protocol/number.rs @@ -11,7 +11,6 @@ use crate::{ VirtualMachine, }; -pub type PyNumberInquiryFunc = fn(PyNumber, &VirtualMachine) -> PyResult; pub type PyNumberUnaryFunc = fn(PyNumber, &VirtualMachine) -> PyResult; pub type PyNumberBinaryFunc = fn(&PyObject, &PyObject, &VirtualMachine) -> PyResult; pub type PyNumberTernaryFunc = fn(&PyObject, &PyObject, &PyObject, &VirtualMachine) -> PyResult; @@ -127,7 +126,7 @@ pub struct PyNumberMethods { pub negative: Option, pub positive: Option, pub absolute: Option, - pub boolean: Option, + pub boolean: Option>, pub invert: Option, pub lshift: Option, pub rshift: Option, @@ -251,7 +250,7 @@ pub struct PyNumberSlots { pub negative: AtomicCell>, pub positive: AtomicCell>, pub absolute: AtomicCell>, - pub boolean: AtomicCell>, + pub boolean: AtomicCell>>, pub invert: AtomicCell>, pub lshift: AtomicCell>, pub rshift: AtomicCell>,