Add NotImplemted.reduce()

This commit is contained in:
gnsxun
2022-05-22 11:07:41 +09:00
parent 4a0be5a6d0
commit 1433d87ad4

View File

@@ -84,6 +84,11 @@ impl PyNotImplemented {
fn repr(&self) -> String {
"NotImplemented".to_owned()
}
#[pymethod(magic)]
fn reduce(&self) -> String {
"NotImplemented".to_owned()
}
}
pub fn init(context: &Context) {