From f95568da431c6506354adb93343206c04a94dc11 Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Wed, 30 Apr 2025 16:54:02 +0300 Subject: [PATCH] abc: Add ABC base class. This trivial addition will allow less code differences between standard Python classes and MicroPython code. Signed-off-by: Alon Bar-Lev --- python-stdlib/abc/abc.py | 4 ++++ python-stdlib/abc/manifest.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/python-stdlib/abc/abc.py b/python-stdlib/abc/abc.py index 941be4f5e..c2c707f62 100644 --- a/python-stdlib/abc/abc.py +++ b/python-stdlib/abc/abc.py @@ -1,2 +1,6 @@ +class ABC: + pass + + def abstractmethod(f): return f diff --git a/python-stdlib/abc/manifest.py b/python-stdlib/abc/manifest.py index 66495fd75..c76312960 100644 --- a/python-stdlib/abc/manifest.py +++ b/python-stdlib/abc/manifest.py @@ -1,3 +1,3 @@ -metadata(version="0.0.1") +metadata(version="0.1.0") module("abc.py")