@@ -11,7 +11,6 @@ use crate::{
1111 VirtualMachine ,
1212} ;
1313
14- pub type PyNumberInquiryFunc = fn ( PyNumber , & VirtualMachine ) -> PyResult < bool > ;
1514pub type PyNumberUnaryFunc < R = PyObjectRef > = fn ( PyNumber , & VirtualMachine ) -> PyResult < R > ;
1615pub type PyNumberBinaryFunc = fn ( & PyObject , & PyObject , & VirtualMachine ) -> PyResult ;
1716pub type PyNumberTernaryFunc = fn ( & PyObject , & PyObject , & PyObject , & VirtualMachine ) -> PyResult ;
@@ -127,7 +126,7 @@ pub struct PyNumberMethods {
127126 pub negative : Option < PyNumberUnaryFunc > ,
128127 pub positive : Option < PyNumberUnaryFunc > ,
129128 pub absolute : Option < PyNumberUnaryFunc > ,
130- pub boolean : Option < PyNumberInquiryFunc > ,
129+ pub boolean : Option < PyNumberUnaryFunc < bool > > ,
131130 pub invert : Option < PyNumberUnaryFunc > ,
132131 pub lshift : Option < PyNumberBinaryFunc > ,
133132 pub rshift : Option < PyNumberBinaryFunc > ,
@@ -251,7 +250,7 @@ pub struct PyNumberSlots {
251250 pub negative : AtomicCell < Option < PyNumberUnaryFunc > > ,
252251 pub positive : AtomicCell < Option < PyNumberUnaryFunc > > ,
253252 pub absolute : AtomicCell < Option < PyNumberUnaryFunc > > ,
254- pub boolean : AtomicCell < Option < PyNumberInquiryFunc > > ,
253+ pub boolean : AtomicCell < Option < PyNumberUnaryFunc < bool > > > ,
255254 pub invert : AtomicCell < Option < PyNumberUnaryFunc > > ,
256255 pub lshift : AtomicCell < Option < PyNumberBinaryFunc > > ,
257256 pub rshift : AtomicCell < Option < PyNumberBinaryFunc > > ,
0 commit comments