mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Add NotImplemted.reduce()
This commit is contained in:
1 parent
4a0be5a6d0
commit
1433d87ad4
1 file changed
+5
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user