From 1433d87ad4ff2d06604f0cc9f025a82f236311cc Mon Sep 17 00:00:00 2001 From: gnsxun Date: Sun, 22 May 2022 11:07:41 +0900 Subject: [PATCH] Add NotImplemted.reduce() --- vm/src/builtins/singletons.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vm/src/builtins/singletons.rs b/vm/src/builtins/singletons.rs index bc5718fbc..0f3b98705 100644 --- a/vm/src/builtins/singletons.rs +++ b/vm/src/builtins/singletons.rs @@ -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) {