Add NotImplemted.reduce()

This commit is contained in:
gnsxun committed 2022-05-22 11:07:41 +09:00
1 parent 4a0be5a6d0
commit 1433d87ad4
1 file changed
+5
+5
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) {