mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Add NotImplemted.reduce()
This commit is contained in:
@@ -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