Skip to content

Commit 1433d87

Browse files
author
gnsxun
committed
Add NotImplemted.reduce()
1 parent 4a0be5a commit 1433d87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vm/src/builtins/singletons.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ impl PyNotImplemented {
8484
fn repr(&self) -> String {
8585
"NotImplemented".to_owned()
8686
}
87+
88+
#[pymethod(magic)]
89+
fn reduce(&self) -> String {
90+
"NotImplemented".to_owned()
91+
}
8792
}
8893

8994
pub fn init(context: &Context) {

0 commit comments

Comments
 (0)